63 lines
1.7 KiB
Markdown
63 lines
1.7 KiB
Markdown
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
# Info Model
|
|
|
|
## Index
|
|
|
|
### Properties
|
|
|
|
- [totalPages](#totalpages) `Number` Tracks total number of info pages.
|
|
|
|
### Methods
|
|
|
|
- [GetTotalPages](#gettotalpages) Returns total number of paytable pages.
|
|
- [SetTotalPages](#settotalpages) Sets the total number of paytable pages.
|
|
|
|
---
|
|
|
|
## Details
|
|
|
|
### Properties
|
|
|
|
#### totalPages
|
|
|
|
> Tracks the total number of paytable pages.
|
|
|
|
| meta | description |
|
|
|------|-------------|
|
|
| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) |
|
|
| Defined in | [p4f-slotty-core/src/model/info-model.js#L6](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/info-model.js#L6) |
|
|
|
|
---
|
|
|
|
## Methods
|
|
|
|
### GetTotalPages
|
|
|
|
Returns the total number of pages currently stored.
|
|
|
|
| meta | description |
|
|
|------|-------------|
|
|
| Returns | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) |
|
|
| Defined in | [p4f-slotty-core/src/model/info-model.js#L12](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/info-model.js#L12) |
|
|
|
|
---
|
|
|
|
### SetTotalPages
|
|
|
|
Sets the total number of paytable pages.
|
|
|
|
**Returns:** `void`
|
|
|
|
| meta | description |
|
|
|------|-------------|
|
|
| Defined in | [p4f-slotty-core/src/model/info-model.js#L17](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/info-model.js#L17) |
|
|
|
|
<p style={{ color: 'gray', fontSize: '1.0em' }}>
|
|
|
|
**Parameters**
|
|
* `totalPages` [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)
|
|
</p>
|