13 KiB
sidebar_position
sidebar_position |
---|
1 |
Auto Spin Controller
Index
Properties
- totalBet
Number
Total current bet in a spin round. - totalWin
Number
Total win points collected. - betLossAccumulation
Number
Accumulated loss for checking loss limit condition.
Methods
- onSpinStarted Decrements remaining auto spins and disables auto spin if none are left.
- onRoundEnd Triggers win/loss limit checks at end of round.
- onTake Triggers win/loss limit checks when a take action occurs.
- onFreeroundsTriggered Stops auto spin if freerounds are triggered.
- onPresentFreeroundsWinStarted Stops auto spin on freeround win presentation.
- onMiniGameStarted Stops auto spin if a mini-game starts.
- onBetDataChanged Updates internal bet tracking based on input data.
- onAutoSpinActivated Activates auto spin mode.
- onAutoSpinDeactivated Disables auto spin and resets
betLossAccumulation
. - onAutoSpinQuantityChanged Updates number of auto spins remaining.
- onFeatureTrigger Stops auto spin if feature is triggered and
stopOnFeatureTrigger
is enabled. - onStopOnTriggerFeatureToggled Toggles stop-on-feature behavior.
- onLossLimitToggled Enables/disables auto-spin stop based on loss limit.
- onLossLimitValueChanged Updates configured loss limit value.
- onWinLimitToggled Enables or disables win limit mode.
- onWinLimitValueChanged Updates win limit threshold.
- onLobbyForcePauseGame Immediately stops auto spin when lobby forces pause.
- onLobbyAllowResumeGame No action defined.
- onDisconnected Stops auto spin due to network disconnect.
- onError Stops auto spin when error occurs.
- onErrorAllowContinue Stops auto spin when recoverable error is received.
- stopAutoSpin Utility method to disable auto spin if currently active. Triggers
AutoSpinDeactivated
event.
Details
Properties
totalBet
Total current bet in a spin round.
meta | description |
---|---|
Type | Number |
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L12 |
totalWin
Total win points collected.
meta | description |
---|---|
Type | Number |
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L13 |
betLossAccumulation
Accumulated loss for checking loss limit condition.
meta | description |
---|---|
Type | Number |
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L14 |
Methods
onSpinStarted
Decrements remaining auto spins and disables auto spin if none are left.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L43 |
Parameters
onRoundEnd
Triggers win/loss limit checks at end of round.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L55 |
onTake
Triggers win/loss limit checks when a take action occurs.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L61 |
onFreeroundsTriggered
Stops auto spin if freerounds are triggered.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L88 |
onPresentFreeroundsWinStarted
Stops auto spin on freeround win presentation.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L94 |
onMiniGameStarted
Stops auto spin if a mini-game starts.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L100 |
onBetDataChanged
Updates internal bet tracking based on input data.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L106 |
Parameters
onAutoSpinActivated
Activates auto spin mode.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L112 |
onAutoSpinDeactivated
Disables auto spin and resets betLossAccumulation
.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L118 |
onAutoSpinQuantityChanged
Updates number of auto spins remaining.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L125 |
Parameters
totalBetPoint
Number.
onFeatureTrigger
Stops auto spin if:
- A free spin is triggered.
- The
stopOnFeatureTrigger
option in the UI is enabled in the model.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L131 |
onStopOnTriggerFeatureToggled
Toggles stop-on-feature behavior.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L139 |
Parameters
isOn
Boolean.
onLossLimitToggled
Enables/disables auto-spin stop based on loss limit.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L145 |
Parameters
isOn
Boolean.
onLossLimitValueChanged
Updates configured loss limit value.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L151 |
Parameters
lossLimit
Number.
onWinLimitToggled
Enables or disables win limit mode.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L157 |
Parameters
isOn
Boolean.
onWinLimitValueChanged
Updates win limit threshold.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L163 |
Parameters
winLimit
Number.
onLobbyForcePauseGame
Immediately stops auto spin when lobby forces pause.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L169 |
onLobbyAllowResumeGame
No action defined. Placeholder handler.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L174 |
onDisconnected
Stops auto spin due to network disconnect.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L176 |
onError
Stops auto spin when error occurs.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L181 |
onErrorAllowContinue
Stops auto spin when recoverable error is received.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L186 |
stopAutoSpin
Utility method to disable auto spin if currently active. Triggers AutoSpinDeactivated
event.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/auto-spin-controller.js#L191 |