--- sidebar_position: 2 --- # Spin model ## Index ### Properties * [nextScrollData](#nextscrolldata) `Object` Stores the next scroll data * [betPoint](#betpoint) `Number` Stores the current bet point. * [totalBetPoint](#totalbetpoint) `Number` Stores the total bet point. ### Methods * [SetBetPoint](#setbetpoint) Sets the bet point value. * [GetBetPoint](#getbetpoint) Gets the current bet point value. * [SetTotalBetPoint](#settotalbetpoint) Sets the total bet point value. * [GetTotalBetPoint](#gettotalbetpoint) Gets the current total bet point value. * [SetNextScrollData](#setnextscrolldata) Sets the next scroll data. ## Details ### Properties #### nextScrollData >

Stores the current bet point.

| meta | description | | :--- | :---------- | | Type | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) \| null | | Defined in | [p4f-slotty-core/src/model/spin-model.js.js#L9](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/spin-model.js#L9)| #### betPoint >

Stores the next scroll data.

| meta | description | | :--- | :---------- | | Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) | | Defined in | [p4f-slotty-core/src/model/spin-model.js.js#L10](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/spin-model.js#L10)| #### totalBetPoint >

Stores the next scroll data.

| meta | description | | :--- | :---------- | | Type | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)| | Defined in | [p4f-slotty-core/src/model/spin-model.js.js#L10](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/spin-model.js#L10)| ### Meethods #### SetBetPoint Sets the bet point value. | meta | description | | :--- | :---------- | | Defined in | [p4f-slotty-core/src/model/spin-model.js.js#L16](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/spin-model.js#L16)|

**Parameters** * `betPoint` [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)

#### GetBetPoint Gets the current bet point value. | meta | description | | :--- | :---------- | | Returns | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| | Defined in | [p4f-slotty-core/src/model/spin-model.js.js#L22](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/spin-model.js#L22)| #### SetTotalBetPoint Stores the total bet point. | meta | description | | :--- | :---------- | | Defined in | [p4f-slotty-core/src/model/spin-model.js.js#L28](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/spin-model.js#L28)|

**Parameters** * `totalBetPoint` [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)

#### GetTotalBetPoint Gets the current total bet point value. | meta | description | | :--- | :---------- | | Returns | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| | Defined in | [p4f-slotty-core/src/model/spin-model.js.js#L34](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/spin-model.js#L34)| #### SetNextScrollData Sets the next scroll data. | meta | description | | :--- | :---------- | | Defined in | [p4f-slotty-core/src/model/spin-model.js.js#L40](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/spin-model.js#L40)|

**Parameters** * `nextScrollData` [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)