ad present feature trigger

This commit is contained in:
Nguyen Ngoc Thanh 2025-07-15 16:45:10 +07:00
parent aea8a96e38
commit 3a32c4ee62
5 changed files with 116 additions and 1 deletions

View File

@ -11,4 +11,6 @@ sidebar_position: 0
* [Bet](category/bet)
* [Spin](category/spin)
* [After Spin](category/after-spin)
* [Auto Spin](category/after-spin)
* [Present Feature Trigger](category/present-feature-trigger)
* [Auto Spin](category/after-spin)
* [Take Or Gamble](category/take-or-gamble)

View File

@ -0,0 +1,18 @@
{
"position": 7,
"label": "Present Feature Trigger",
"collapsible": true,
"collapsed": true,
"link": {
"type": "generated-index",
"title": "Present Feature Trigger",
"description": "This section will guide you through the process of setting up a new project, including creating a new repository and configuring your development environment.",
"keywords": [
"controller",
"project",
"repository",
"model",
"trigger"
]
}
}

View File

@ -0,0 +1,44 @@
---
sidebar_position: 2
---
# Present Feature Trigger Controller
## Index
### Methods
* [_start](#_start) Initialize some logic which need to be called the game enters the Bet State.
* [_registerEvent](#_registerevent) Register events.
* [onPresentFeatureTriggerCompleted](#onpresentfeaturetriggercompleted) Start feature game.
* [startFeatureGame](#startfeaturegame) Check the feature game condition and start base on it.
## Details
#### _start
> Initialize some logic which need to be called the game enters the Bet State.<br/>
| meta | description |
| :--- | :---------- |
| Defined in | [p4f-slotty-core/src/controller/present-feature-trigger-controller.js:16](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/present-feature-trigger-controller.js#L16)|
#### _registerevent
> Register events.<br/>
| meta | description |
| :--- | :---------- |
| Defined in | [p4f-slotty-core/src/controller/present-feature-trigger-controller.js:23](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/present-feature-trigger-controller.js#L23)|
#### onPresentFeatureTriggerCompleted
> Start feature game.<br/>
| meta | description |
| :--- | :---------- |
| Defined in | [p4f-slotty-core/src/controller/present-feature-trigger-controller.js:29](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/present-feature-trigger-controller.js#L29)|
#### startFeatureGame
> Check the feature game condition and start base on it.<br/>
| meta | description |
| :--- | :---------- |
| Defined in | [p4f-slotty-core/src/controller/present-feature-trigger-controller.js:37](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/present-feature-trigger-controller.js#L37)|

View File

@ -0,0 +1,46 @@
---
sidebar_position: 2
---
# Present Feature Trigger Model
## Index
### Properties
* [featureData](#featuredata) `WinlineData` The current feature trigger data.
### Methods
* [Reset](#reset) Reset the feature trigger data.
* [SetFeatureTriggerData](#setfeaturetriggerdata) Set the feature trigger data.
* [GetFeatureTriggerData](#getfeaturetriggerdata) Get the feature trigger data.
## Details
#### featureData
> Current point.<br/>
| meta | description |
| :--- | :---------- |
| Type | [WinlineData](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/slotty-data/response-data/win-line-data.js) |
| Defined in | [p4f-slotty-core/src/model/present-feature-trigger-model.js:10](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/present-feature-trigger-model.js#L10)|
#### Reset
> Reset the feature trigger data.<br/>
| meta | description |
| :--- | :---------- |
| Defined in | [p4f-slotty-core/src/model/present-feature-trigger-model.js:15](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/present-feature-trigger-model.js#L15)|
#### SetFeatureTriggerData
> Set the feature trigger data.<br/>
| meta | description |
| :--- | :---------- |
| Defined in | [p4f-slotty-core/src/model/present-feature-trigger-model.js:21](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/present-feature-trigger-model.js#L21)|
#### GetFeatureTriggerData
> Get the feature trigger data.<br/>
| meta | description |
| :--- | :---------- |
| Defined in | [p4f-slotty-core/src/model/present-feature-trigger-model.js:27](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/present-feature-trigger-model.js#L27)|

View File

@ -0,0 +1,5 @@
---
sidebar_position: 3
---
# Present Feature Trigger View