80 lines
2.9 KiB
Markdown
80 lines
2.9 KiB
Markdown
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
# Balance Model
|
|
|
|
## Index
|
|
|
|
### Properties
|
|
* [currentPoint](#currentpoint) `Number` Current point.
|
|
* [freePoint](#freepoint) `Number` Current free point.
|
|
|
|
### Methods
|
|
* [SetCurrentPoint](#setcurrentpoint) Set current point.
|
|
* [GetCurrentPoint](#getcurrentpoint) Get current point.
|
|
* [SetFreePoint](#setfreepoint) Set current free point.
|
|
* [GetFreePoint](#getfreepoint) Get current free point.
|
|
* [GetAvailablePoint](#getavalablepoint) Get current point.
|
|
* [isNumber](#isnumber) Indicates whether the value is number or not.
|
|
|
|
## Details
|
|
|
|
#### currentPoint
|
|
> Current point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) |
|
|
| Defined in | [p4f-game-core/src/model/balance-model.js:8](https://gitea.plp19.com/cocos-core/p4f-game-core/src/branch/develop/src/model/balance-model.js#L9)|
|
|
|
|
#### freePoint
|
|
> Current free point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) |
|
|
| Defined in | [p4f-game-core/src/model/balance-model.js:9](https://gitea.plp19.com/cocos-core/p4f-game-core/src/branch/develop/src/model/balance-model.js#L9)|
|
|
|
|
#### SetCurrentPoint
|
|
> Set current point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-game-core/src/model/balance-model.js:14](https://gitea.plp19.com/cocos-core/p4f-game-core/src/branch/develop/src/model/balance-model.js#L14)|
|
|
|
|
#### GetCurrentPoint
|
|
> Get current point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-game-core/src/model/balance-model.js:21](https://gitea.plp19.com/cocos-core/p4f-game-core/src/branch/develop/src/model/balance-model.js#L21)|
|
|
|
|
#### SetFreePoint
|
|
> Set Current free point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-game-core/src/model/balance-model.js:27](https://gitea.plp19.com/cocos-core/p4f-game-core/src/branch/develop/src/model/balance-model.js#L27)|
|
|
|
|
#### GetFreePoint
|
|
> Get current free point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-game-core/src/model/balance-model.js:34](https://gitea.plp19.com/cocos-core/p4f-game-core/src/branch/develop/src/model/balance-model.js#L34)|
|
|
|
|
#### GetAvailablePoint
|
|
> Get current point.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-game-core/src/model/balance-model.js:40](https://gitea.plp19.com/cocos-core/p4f-game-core/src/branch/develop/src/model/balance-model.js#L40)|
|
|
|
|
#### isNumber
|
|
> Indicates whether the value is number or not.<br/>
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Type | [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) |
|
|
| Defined in | [p4f-game-core/src/model/balance-model.js:46](https://gitea.plp19.com/cocos-core/p4f-game-core/src/branch/develop/src/model/balance-model.js#L46)| |