5.9 KiB
5.9 KiB
sidebar_position
sidebar_position |
---|
1 |
Spin Controller
Index
Properties
- savedBetPoint
Number
Current played bet. - savedTotalBetPoint
Number
Current total played bet. - isPaused
Boolean
Indicates if the game is currently paused, including when paused by lobby force. - waiter
object
Waits until not paused.
Methods
- _start Starts a spin round. Prepares spin data, handles game round confirmation, and waits until the game is not paused before sending a spin request.
- _complete Completes the spin round and stops any waiting processes.
- onBetDataChanged Updates internal bet tracking based on input data.
- onNextScrollDataReceived Updates the model with new scroll data received from the network.
- onStopSpinClicked Notifies listeners when the stop spin button is clicked.
Details
Properties
savedbetpoint
Current played bet.
meta | description |
---|---|
Type | Number |
Defined in | p4f-slotty-core/src/controller/spin-controller.js#L14 |
savedTotalBetPoint
Current total played bet.
meta | description |
---|---|
Type | Number |
Defined in | p4f-slotty-core/src/controller/spin-controller.js#L15 |
isPaused
Indicates if the game is currently paused, including when paused by lobby force.
meta | description |
---|---|
Type | Boolean |
Defined in | p4f-slotty-core/src/controller/spin-controller.js#L16 |
waiter
Waits until not paused.
meta | description |
---|---|
Type | Object | null |
Defined in | p4f-slotty-core/src/controller/spin-controller.js#L17 |
Methods
_start
Starts a spin round. Prepares spin data, handles game round confirmation, and waits until the game is not paused before sending a spin request.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/spin-controller.js#L32 |
Parameters
_complete
Completes the spin round and stops any waiting processes.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/spin-controller.js#L68 |
onBetDataChanged
Updates internal bet tracking based on input data.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/spin-controller.js#L77 |
Parameters
onNextScrollDataReceived
Updates the model with the new scroll data received from the network.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/spin-controller.js#L83 |
Parameters
data
Object
onStopSpinClicked
Notifies listeners when the stop spin button is clicked.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/spin-controller.js#L89 |