7.8 KiB
sidebar_position
sidebar_position |
---|
1 |
Balance Controller
Index
Properties
- savedCurrentPoint
Number
The current played bet. - savedFreePoint
Number
The current free point played bet. - isResume
Boolean
Indicates whether the game current state is resuming.
Methods
- onReplayHistoryClient Indicates the game current state is resuming.
- onResume Indicates the game current state is resuming.
- onResumeEnd Indicates the game current state isn't resuming.
- onDeposit Update the client balance when user deposit.
- onConnected Update the client balance when the game is connected.
- onStartGame Show the client balance when the game is started.
- onCollectDataReceivedUpdate the client balance when the game is collected.
- onBalanceDataReceived Update the client balance when get new balance data.
- onBalanceChangeRateClicked Change the client balance rate.
- updateBalance Update the client balance.
- notifyBalance Notify the client balance.
- placeBet Set current client bet.
- clearBet Clear current client bet
- onSpinStart Update the client balance when user spin.
- onReplayHistory Indicates the game current state is resuming.
- onReplayHistoryEnd Indicates the game current state isn't resuming.
- onFastPlayDataReceived Update the client balance when user playing Fast Play.
Details
savedCurrentPoint
The current played bet.
meta | description |
---|---|
Type | Number |
Defined in | p4f-game-core/src/controller/balance-controller.js:12 |
savedFreePoint
The current free point played bet.
meta | description |
---|---|
Type | Number |
Defined in | p4f-game-core/src/controller/balance-controller.js:13 |
isResume
Indicates whether the game state is not resumed.
meta | description |
---|---|
Type | Boolean |
Defined in | p4f-game-core/src/controller/balance-controller.js:14 |
onReplayHistoryClient
Indicates the game current state is resuming.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:28 |
onResume
Indicates the game current state is resuming.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:36 |
onResumeEnd
Indicates the game current state isn't resuming.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:44 |
onDeposit
Update the client balance when user deposit.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:52 |
onConnected
Update the client balance when the game is connected.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:82 |
onStartGame
Show the client balance when the game is started.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:90 |
onCollectDataReceived
Update the client balance when the game is collected.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:99 |
onBalanceDataReceived
Update the client balance when get new balance data.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:109 |
onBalanceChangeRateClicked
Change the client balance rate.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:117 |
updateBalance
Update the client balance.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:129 |
notifyBalance
Notify the client balance.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:141 |
placeBet
Set current client bet.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:151 |
clearBet
Clear current client bet.
meta | description |
---|---|
Defined in | p4f-game-core/src/controller/balance-controller.js:180 |
onSpinStart
Update the client balance when user spin.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/balance-controller.js:17 |
onReplayHistory
Indicates the game current state is resuming.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/balance-controller.js:29 |
onReplayHistoryEnd
Indicates the game current state isn't resuming.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/balance-controller.js:37 |
onFastPlayDataReceived
Update the client balance.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/controller/balance-controller.js:45 |