60 lines
2.1 KiB
Markdown
60 lines
2.1 KiB
Markdown
---
|
|
sidebar_position: 1
|
|
---
|
|
# Present Feature Win Controller
|
|
|
|
## Index
|
|
|
|
### Methods
|
|
|
|
- [_start](#_start) Initializes feature win state and notifies the game controller.
|
|
- [_complete](#_complete) Resets the model state after feature is done.
|
|
- [getFeatureWinData](#getfeaturewindata) Retrieves a structured object describing current feature win state.
|
|
- [onViewPresentFeatureWinCompleted](#onviewpresentfeaturewincompleted) Handles the event when the view finishes win presentation. Triggers bonus, freespin, or round end logic accordingly.
|
|
|
|
---
|
|
|
|
## Details
|
|
|
|
### Methods
|
|
|
|
#### _start
|
|
|
|
Initializes feature win state and notifies the game controller.
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/controller/present-feature-win-controller.js#L17](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/present-feature-win-controller.js#L17) |
|
|
|
|
---
|
|
|
|
#### _complete
|
|
|
|
Resets the model state after feature is done.
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/controller/present-feature-win-controller.js#L28](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/present-feature-win-controller.js#L28) |
|
|
|
|
---
|
|
|
|
#### getFeatureWinData
|
|
|
|
Retrieves a structured object describing current feature win state
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Returns | Object |
|
|
| Defined in | [p4f-slotty-core/src/controller/present-feature-win-controller.js#L34](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/present-feature-win-controller.js#L34) |
|
|
|
|
---
|
|
|
|
#### onViewPresentFeatureWinCompleted
|
|
|
|
Handles the event when the view finishes win presentation. Triggers bonus, freespin, or round end logic accordingly.
|
|
|
|
| meta | description |
|
|
| :--- | :---------- |
|
|
| Defined in | [p4f-slotty-core/src/controller/present-feature-win-controller.js#L47](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/present-feature-win-controller.js#L47) |
|
|
|
|
--- |