288 lines
12 KiB
Markdown
288 lines
12 KiB
Markdown
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
# Bet Model
|
|
|
|
## Index
|
|
|
|
### Properties
|
|
* [betPoints](#betpoints) `Array` The current the bet points.
|
|
* [availableBetPoints](#availablebetpoints) `Array` The current available bet points that user can place.
|
|
* [betPoint](#betpoint) `Number` The current bet point.
|
|
* [minBetPoint](#minbetpoint) `Number` The current min bet point.
|
|
* [savedBetPoint](#savedbetpoint) `Number` The current save point.
|
|
* [betMultiplier](#betmultiplier) `Number` The current bet multiplier.
|
|
* [paylineCount](#paylinecount) `Number` The current Pay Linecount.
|
|
* [totalBetPoint](#totalbetpoint) `Number` The current total bet point.
|
|
* [isBuyBonusActivated](#isbuybonusactivated) `Boolean` Indicates whether the user is buying a bonus.
|
|
* [isFastPlayActivated](#isfastplayactivated) `Boolean` Indicates whether the user is playing fast play.
|
|
* [outcome](#outcome) `Object` The current outcome.
|
|
|
|
### Methods
|
|
* [SetBuyBonusActivated](#setbuybonusactivated) Set whether the user is buying a bonus.
|
|
* [CheckBuyBonusActivated](#checkbuybonusactivated) Check whether the user is buying a bonus.
|
|
* [SetFastPlayActivated](#setfastplayactivated) Set whether the user is playing fast play.
|
|
* [CheckFastPlayActivated](#checkfastplayactivated) Check whether the user is playing fast play.
|
|
* [SetOutcome](#setoutcome) Set the outcome data.
|
|
* [SetBetPoints](#setbetpoints) Set the bet points.
|
|
* [GetBetPoints](#getbetpoints) Get the bet points.
|
|
* [SetBetPoint](#setbetpoints) Set the bet point.
|
|
* [GetBetPoint](#getbetpoints) Get the bet point.
|
|
* [SetMinTotalBet](#setbetpoints) Set the min total bet point.
|
|
* [GetMinTotalBet](#getbetpoints) Get the min total bet point.
|
|
* [SetAvailableBetPoints](#setbetpoints) Set the available bet points.
|
|
* [GetAvailableBetPoints](#getbetpoints) Get the available bet points.
|
|
* [SaveBetPoint](#savebetpoint) Save the bet point.
|
|
* [GetSavedBetPoint](#getsavedbetpoint) Get the saved bet point.
|
|
* [SetBetMultiplier](#setbetmultiplier) Set the bet multiplier.
|
|
* [GetBetMultiplier](#getbetmultiplier) Get the bet multiplier.
|
|
* [SetPaylineCount](#setpaylinecount) Set the payline count.
|
|
* [GetPaylineCount](#getpaylinecount) Get the payline count.
|
|
* [SetTotalBetPoint ](#Settotalbetpoint) Save the total bet point.
|
|
* [GetTotalBetPoint ](#gettotalbetpoint) Get the total bet point.
|
|
|
|
## Details
|
|
|
|
#### betPoints
|
|
> The current the bet points.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:11](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L11)|
|
|
|
|
#### availableBetPoints
|
|
> The current available bet points that user can place.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:12](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L12)|
|
|
|
|
#### betPoint
|
|
> The current bet point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:13](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L13)|
|
|
|
|
#### minBetPoint
|
|
> The current min bet point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:14](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L14)|
|
|
|
|
#### savedbetPoint
|
|
> The current save point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:15](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L15)|
|
|
|
|
#### betMultiplier
|
|
> The current bet multiplier.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:16](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L16)|
|
|
|
|
#### payLineCount
|
|
> The current Pay Linecount.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:17](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L17)|
|
|
|
|
#### totalBetPoint
|
|
> The current total bet point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:18](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L18)|
|
|
|
|
#### isBuyBonusActivated
|
|
> Indicates whether the user is buying a bonus.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:19](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L19)|
|
|
|
|
#### isFastPlayActivated
|
|
> Indicates whether the user is playing fast play.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:20](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L20)|
|
|
|
|
#### outCome
|
|
> The current outcome.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:21](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L21)|
|
|
|
|
#### SetBuyBonusActivated
|
|
> Set whether the user is buying a bonus.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:26](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L26)|
|
|
|
|
#### CheckBuyBonusActivated
|
|
> Check whether the user is buying a bonus.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:32](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L32)|
|
|
|
|
#### SetFastPlayActivated
|
|
> Set whether the user is playing fast play.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:38](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L38)|
|
|
|
|
#### CheckFastPlayActivated
|
|
> Check whether the user is playing fast play.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:44](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L44)|
|
|
|
|
#### SetOutcome
|
|
> Set the outcome data.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:50](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L50)|
|
|
|
|
#### GetOutcome
|
|
> Get the outcome data.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:56](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L56)|
|
|
|
|
#### SetBetPoints
|
|
> Set the bet points.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:62](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L62)|
|
|
|
|
|
|
#### GetBetPoints
|
|
> Get bet points<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:68](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L68)|
|
|
|
|
#### SetBetPoint
|
|
> Set the bet point<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:98](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L98)|
|
|
|
|
#### GetBetPoint
|
|
> Get the bet point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:104](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L104)|
|
|
|
|
#### SetMinTotalBet
|
|
> Set the min total bet point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:74](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L74)|
|
|
|
|
#### GetMinTotalBet
|
|
> Get the min total bet point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:80](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L80)|
|
|
|
|
#### SetAvailableBetPoints
|
|
> Set the available bet points.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:86](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L86)|
|
|
|
|
#### GetAvailableBetPoints
|
|
> Get the available bet points.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:92](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L92)|
|
|
|
|
#### SaveBetPoint
|
|
> Set the bet point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:110](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L110)|
|
|
|
|
#### GetSavedBetPoint
|
|
> Get the saved bet point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:116](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L116)|
|
|
|
|
#### SetBetMultiplier
|
|
> Set the bet multiplier.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:122](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L122)|
|
|
|
|
#### GetBetMultiplier
|
|
> Get the bet multiplier.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:128](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L128)|
|
|
|
|
#### SetPaylineCount
|
|
> Set the payline count.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:134](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L134)|
|
|
|
|
#### GetPaylineCount
|
|
> Get the payline count.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:141](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L141)|
|
|
|
|
#### SetTotalBetPoint
|
|
> Set the total bet point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:147](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L147)|
|
|
|
|
#### GetTotalBetPoint
|
|
> Get the total bet point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/model/bet-model.js:153](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L153)| |