From 833ddaddcd524db4464032c4d68e9ed1e0d7261f Mon Sep 17 00:00:00 2001 From: dungdq Date: Tue, 15 Jul 2025 13:33:59 +0700 Subject: [PATCH 1/4] add take and gamble doc --- .../slot-machine/end-round/end-round-model.md | 16 +-- .../slot-machine/end-round/end-round-view.md | 13 +-- .../take-and-gamble/_category_.json | 18 ++++ .../take-and-gamble-controller.md | 101 ++++++++++++++++++ .../take-and-gamble/take-and-gamble-model.md | 16 +++ .../take-and-gamble/take-and-gamble-view.md | 16 +++ 6 files changed, 168 insertions(+), 12 deletions(-) create mode 100644 api-doc/slot-machine/take-and-gamble/_category_.json create mode 100644 api-doc/slot-machine/take-and-gamble/take-and-gamble-controller.md create mode 100644 api-doc/slot-machine/take-and-gamble/take-and-gamble-model.md create mode 100644 api-doc/slot-machine/take-and-gamble/take-and-gamble-view.md diff --git a/api-doc/slot-machine/end-round/end-round-model.md b/api-doc/slot-machine/end-round/end-round-model.md index dd126db..f6704e5 100644 --- a/api-doc/slot-machine/end-round/end-round-model.md +++ b/api-doc/slot-machine/end-round/end-round-model.md @@ -1,14 +1,18 @@ --- +--- sidebar_position: 2 --- -# Auto Spin Model +# EndRoundModel ## Overview -* EndRoundModel is a model class for the spin feature in the slot game. It extends the base model class and is intended to handle the visual representation and UI logic for spins. +`EndRoundModel` is a model class for managing the end-of-round logic in the slot machine game. It extends the base model class and is responsible for handling the visual representation and UI logic related to the end of a spin. -## Description: -* Initializes a new instance of EndRoundModel. -* Calls the base model constructor. -* [p4f-game-core/src/view/end-round-model.js:#L5](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/end-round-model.js#L5) \ No newline at end of file +## Description + +- Initializes a new instance of `EndRoundModel`. +- Calls the base model constructor. +- Handles end-of-round events and updates the UI accordingly. + +[Source code reference](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/end-round-model.js#L5) \ No newline at end of file diff --git a/api-doc/slot-machine/end-round/end-round-view.md b/api-doc/slot-machine/end-round/end-round-view.md index bc2020a..94eedfd 100644 --- a/api-doc/slot-machine/end-round/end-round-view.md +++ b/api-doc/slot-machine/end-round/end-round-view.md @@ -2,13 +2,14 @@ sidebar_position: 3 --- -# Auto Spin view +# EndRoundView ## Overview -* EndRoundView is a view class for the spin feature in the slot game. It extends the base View class and is intended to handle the visual representation and UI logic for spins. +EndRoundView is a UI component for managing the end-of-round visuals in the slot machine game. It extends the base View class, providing logic and presentation for the spin completion state. -## Description: -* Initializes a new instance of EndRoundView. -* Calls the base View constructor. -* [p4f-game-core/src/view/end-round-view.js:#L5](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/view/end-round-view.js#L5) +## Description + +- Constructs a new EndRoundView instance. +- Invokes the base View constructor for initialization. +- [Source code reference](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/view/end-round-view.js#L5) diff --git a/api-doc/slot-machine/take-and-gamble/_category_.json b/api-doc/slot-machine/take-and-gamble/_category_.json new file mode 100644 index 0000000..1af0d17 --- /dev/null +++ b/api-doc/slot-machine/take-and-gamble/_category_.json @@ -0,0 +1,18 @@ +{ + "position": 30, + "label": "Take and Gamble", + "collapsible": true, + "collapsed": true, + "link": { + "type": "generated-index", + "title": "Take and Gamble", + "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", + "take-and-gamble" + ] + } +} \ No newline at end of file diff --git a/api-doc/slot-machine/take-and-gamble/take-and-gamble-controller.md b/api-doc/slot-machine/take-and-gamble/take-and-gamble-controller.md new file mode 100644 index 0000000..18a66c5 --- /dev/null +++ b/api-doc/slot-machine/take-and-gamble/take-and-gamble-controller.md @@ -0,0 +1,101 @@ +--- +sidebar_position: 1 +--- +# Take Or Gamble Controller + +## Index + +### Methods + +- [_start](#_start) Initializes the take-or-gamble phase depending on game state. +- [_registerEvent](#_registerevent) Registers trigger listeners for take or gamble actions. +- [onTakeClicked](#ontakeclicked) Handles take button click. +- [onGambleClicked](#ongambleclicked) Handles gamble button click. +- [take](#take) Triggers the 'take' action. +- [gamble](#gamble) Triggers the 'gamble' action. +- [checkShowWinLimit](#checkshowwinlimit) Checks whether win limit has been reached and if skipping gamble is disabled. +- [_complete](#_complete) Placeholder for completion handling. + +--- + +## Details + +### Methods + +#### _start + +Initializes the take-or-gamble phase depending on game state. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/take-or-gamble-controller.js#L16](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/take-or-gamble-controller.js#L16) | + +--- + +#### _registerEvent + +Registers trigger listeners for take or gamble actions and win-limit check. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/take-or-gamble-controller.js#L34](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/take-or-gamble-controller.js#L34) | + +--- + +#### onTakeClicked + +Handles take button click. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/take-or-gamble-controller.js#L47](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/take-or-gamble-controller.js#L47) | + +--- + +#### onGambleClicked + +Handles gamble button click. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/take-or-gamble-controller.js#L57](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/take-or-gamble-controller.js#L57) | + +--- + +#### take + +Triggers the 'take' action and notifies with current total win points. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/take-or-gamble-controller.js#L59](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/take-or-gamble-controller.js#L59) | + +--- + +#### gamble + +Triggers the 'gamble' action and notifies with current total win points. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/take-or-gamble-controller.js#L67](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/take-or-gamble-controller.js#L67) | + +--- + +#### checkShowWinLimit + +Checks whether win limit has been reached and if skipping gamble is disabled. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/take-or-gamble-controller.js#L75](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/take-or-gamble-controller.js#L75) | + +--- + +#### _complete + +Placeholder for completion handling. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/take-or-gamble-controller.js#L80](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/controller/take-or-gamble-controller.js#L80) | diff --git a/api-doc/slot-machine/take-and-gamble/take-and-gamble-model.md b/api-doc/slot-machine/take-and-gamble/take-and-gamble-model.md new file mode 100644 index 0000000..703b665 --- /dev/null +++ b/api-doc/slot-machine/take-and-gamble/take-and-gamble-model.md @@ -0,0 +1,16 @@ +--- +sidebar_position: 2 +--- + +# TakeOrGambleModel + +## Overview + +`TakeOrGambleModel` is a model class for the "Take or Gamble" feature in the slot game. It extends the base model class and manages the logic and state for handling win events, including the decision to take winnings or gamble for more. + +## Description + +- Initializes a new instance of `TakeOrGambleModel`. +- Calls the base model constructor. +- Handles UI logic and state for the "Take or Gamble" feature. +- [Source code reference](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/take-or-gamble-model.js#L5) \ No newline at end of file diff --git a/api-doc/slot-machine/take-and-gamble/take-and-gamble-view.md b/api-doc/slot-machine/take-and-gamble/take-and-gamble-view.md new file mode 100644 index 0000000..0db2826 --- /dev/null +++ b/api-doc/slot-machine/take-and-gamble/take-and-gamble-view.md @@ -0,0 +1,16 @@ +--- +sidebar_position: 3 +--- + +# TakeOrGambleView + +## Overview + +`TakeOrGambleView` is a UI component for the slot machine's spin feature. It extends the base `View` class and manages the display and user interactions related to taking winnings or gambling them. + +## Description + +- Constructs a new `TakeOrGambleView` instance. +- Invokes the base `View` constructor. +- Source: [`take-or-gamble-view.js:5`](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/view/take-or-gamble-view.js#L5) + From bfd25398c18c490926017280c9161b2391e386e3 Mon Sep 17 00:00:00 2001 From: dungdq Date: Tue, 15 Jul 2025 14:03:02 +0700 Subject: [PATCH 2/4] update name script --- .../slot-machine/take-and-gamble/take-and-gamble-model.md | 6 +++--- .../slot-machine/take-and-gamble/take-and-gamble-view.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api-doc/slot-machine/take-and-gamble/take-and-gamble-model.md b/api-doc/slot-machine/take-and-gamble/take-and-gamble-model.md index 703b665..965f147 100644 --- a/api-doc/slot-machine/take-and-gamble/take-and-gamble-model.md +++ b/api-doc/slot-machine/take-and-gamble/take-and-gamble-model.md @@ -2,15 +2,15 @@ sidebar_position: 2 --- -# TakeOrGambleModel +# Take Or Gamble Model ## Overview -`TakeOrGambleModel` is a model class for the "Take or Gamble" feature in the slot game. It extends the base model class and manages the logic and state for handling win events, including the decision to take winnings or gamble for more. +`Take Or Gamble Model` is a model class for the "Take or Gamble" feature in the slot game. It extends the base model class and manages the logic and state for handling win events, including the decision to take winnings or gamble for more. ## Description -- Initializes a new instance of `TakeOrGambleModel`. +- Initializes a new instance of `Take Or Gamble Model`. - Calls the base model constructor. - Handles UI logic and state for the "Take or Gamble" feature. - [Source code reference](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/take-or-gamble-model.js#L5) \ No newline at end of file diff --git a/api-doc/slot-machine/take-and-gamble/take-and-gamble-view.md b/api-doc/slot-machine/take-and-gamble/take-and-gamble-view.md index 0db2826..5c16eba 100644 --- a/api-doc/slot-machine/take-and-gamble/take-and-gamble-view.md +++ b/api-doc/slot-machine/take-and-gamble/take-and-gamble-view.md @@ -2,15 +2,15 @@ sidebar_position: 3 --- -# TakeOrGambleView +# Take Or Gamble View ## Overview -`TakeOrGambleView` is a UI component for the slot machine's spin feature. It extends the base `View` class and manages the display and user interactions related to taking winnings or gambling them. +`Take Or Gamble View` is a UI component for the slot machine's spin feature. It extends the base `View` class and manages the display and user interactions related to taking winnings or gambling them. ## Description -- Constructs a new `TakeOrGambleView` instance. +- Constructs a new `Take Or Gamble View` instance. - Invokes the base `View` constructor. - Source: [`take-or-gamble-view.js:5`](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/view/take-or-gamble-view.js#L5) From 6ad5c9d960f029500a2b55cf7e0ad1666838b078 Mon Sep 17 00:00:00 2001 From: Nguyen Ngoc Thanh Date: Tue, 15 Jul 2025 11:00:27 +0700 Subject: [PATCH 3/4] add after spin controller --- api-doc/intro.md | 7 +++++-- .../slot-machine/after-spin/_category_.json | 18 ++++++++++++++++++ .../after-spin/after-spin-controller.md | 19 +++++++++++++++++++ .../after-spin/after-spin-model.md | 5 +++++ .../after-spin/after-spin-view.md | 5 +++++ .../balance/balance-controller.md | 2 +- api-doc/slot-machine/balance/balance-view.md | 2 +- 7 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 api-doc/slot-machine/after-spin/_category_.json create mode 100644 api-doc/slot-machine/after-spin/after-spin-controller.md create mode 100644 api-doc/slot-machine/after-spin/after-spin-model.md create mode 100644 api-doc/slot-machine/after-spin/after-spin-view.md diff --git a/api-doc/intro.md b/api-doc/intro.md index 9a9e187..6486724 100644 --- a/api-doc/intro.md +++ b/api-doc/intro.md @@ -6,6 +6,9 @@ sidebar_position: 0 # Slot Game API ## Slot Game Machine -* [Initialize Controller](slot-machine/initialize-controller) +* [Initialize](slot-machine/initialize-controller) * [Balance](category/balance) -* [Bet](category/bet) \ No newline at end of file +* [Bet](category/bet) +* [Spin](category/spin) +* [After Spin](category/after-spin) +* [Auto Spin](category/after-spin) \ No newline at end of file diff --git a/api-doc/slot-machine/after-spin/_category_.json b/api-doc/slot-machine/after-spin/_category_.json new file mode 100644 index 0000000..bf536d2 --- /dev/null +++ b/api-doc/slot-machine/after-spin/_category_.json @@ -0,0 +1,18 @@ +{ + "position": 5, + "label": "After Spin", + "collapsible": true, + "collapsed": true, + "link": { + "type": "generated-index", + "title": "After Spin", + "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", + "afterspin" + ] + } +} \ No newline at end of file diff --git a/api-doc/slot-machine/after-spin/after-spin-controller.md b/api-doc/slot-machine/after-spin/after-spin-controller.md new file mode 100644 index 0000000..12c45d2 --- /dev/null +++ b/api-doc/slot-machine/after-spin/after-spin-controller.md @@ -0,0 +1,19 @@ +--- +sidebar_position: 1 +--- + +# After Spin Controller +## Index + +### Methods + +* [transitionToNextState](#transitiontonextstate) Check the condition and move to the next state. + +## Details + +#### transitionToNextState +> Check the condition and move to the next state.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/after-spin-controller.js:21](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/after-spin-controller.js#L21)| \ No newline at end of file diff --git a/api-doc/slot-machine/after-spin/after-spin-model.md b/api-doc/slot-machine/after-spin/after-spin-model.md new file mode 100644 index 0000000..8cfdfc5 --- /dev/null +++ b/api-doc/slot-machine/after-spin/after-spin-model.md @@ -0,0 +1,5 @@ +--- +sidebar_position: 2 +--- + +# After Spin Model \ No newline at end of file diff --git a/api-doc/slot-machine/after-spin/after-spin-view.md b/api-doc/slot-machine/after-spin/after-spin-view.md new file mode 100644 index 0000000..2f44fa5 --- /dev/null +++ b/api-doc/slot-machine/after-spin/after-spin-view.md @@ -0,0 +1,5 @@ +--- +sidebar_position: 3 +--- + +# After Spin View \ No newline at end of file diff --git a/api-doc/slot-machine/balance/balance-controller.md b/api-doc/slot-machine/balance/balance-controller.md index bbc6d02..78d6550 100644 --- a/api-doc/slot-machine/balance/balance-controller.md +++ b/api-doc/slot-machine/balance/balance-controller.md @@ -1,5 +1,5 @@ --- -sidebar_position: 2 +sidebar_position: 1 --- # Balance Controller diff --git a/api-doc/slot-machine/balance/balance-view.md b/api-doc/slot-machine/balance/balance-view.md index 95cc88a..badb7fe 100644 --- a/api-doc/slot-machine/balance/balance-view.md +++ b/api-doc/slot-machine/balance/balance-view.md @@ -1,5 +1,5 @@ --- -sidebar_position: 2 +sidebar_position: 3 --- # Balance View From 2af308f25868619ced8d55af6505d37d545ab18a Mon Sep 17 00:00:00 2001 From: dungdq Date: Tue, 15 Jul 2025 17:01:03 +0700 Subject: [PATCH 4/4] add doc present feature win --- .../present-feature-win/_category_.json | 18 ++ .../present-feature-win-controller.md | 60 ++++++ .../present-feature-win-model.md | 181 ++++++++++++++++++ .../present-feature-win-view.md | 24 +++ 4 files changed, 283 insertions(+) create mode 100644 api-doc/slot-machine/present-feature-win/_category_.json create mode 100644 api-doc/slot-machine/present-feature-win/present-feature-win-controller.md create mode 100644 api-doc/slot-machine/present-feature-win/present-feature-win-model.md create mode 100644 api-doc/slot-machine/present-feature-win/present-feature-win-view.md diff --git a/api-doc/slot-machine/present-feature-win/_category_.json b/api-doc/slot-machine/present-feature-win/_category_.json new file mode 100644 index 0000000..352c8fd --- /dev/null +++ b/api-doc/slot-machine/present-feature-win/_category_.json @@ -0,0 +1,18 @@ +{ + "position": 29, + "label": "Present Feature Win", + "collapsible": true, + "collapsed": true, + "link": { + "type": "generated-index", + "title": "Present Feature Win", + "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", + "present-feature-win" + ] + } +} \ No newline at end of file diff --git a/api-doc/slot-machine/present-feature-win/present-feature-win-controller.md b/api-doc/slot-machine/present-feature-win/present-feature-win-controller.md new file mode 100644 index 0000000..d707379 --- /dev/null +++ b/api-doc/slot-machine/present-feature-win/present-feature-win-controller.md @@ -0,0 +1,60 @@ +--- +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) | + +--- \ No newline at end of file diff --git a/api-doc/slot-machine/present-feature-win/present-feature-win-model.md b/api-doc/slot-machine/present-feature-win/present-feature-win-model.md new file mode 100644 index 0000000..72a6989 --- /dev/null +++ b/api-doc/slot-machine/present-feature-win/present-feature-win-model.md @@ -0,0 +1,181 @@ +--- +sidebar_position: 2 +--- +# Present Feature Win Model + +## Index + +### Properties + +- [featureHitRule](#featurehitrule) `String` Rule that determines how the feature is triggered. +- [featurePlayedCount](#featureplayedcount) `Number` Number of times the feature has been played. +- [gameWinPoint](#gamewinpoint) `Number` Points won in the base game. +- [featureWinPoint](#featurewinpoint) `Number` Points won in the feature game. + +### Methods + +- [Reset](#reset) Resets all model properties to default values. +- [SetFeaturePlayedCount](#setfeatureplayedcount) Sets the number of times the feature has been played. +- [GetFeaturePlayedCount](#getfeatureplayedcount) Gets the number of times the feature has been played. +- [SetFeatureHitRule](#setfeaturehitrule) Sets the rule used to trigger the feature. +- [GetFeatureHitRule](#getfeaturehitrule) Gets the feature hit rule. +- [SetGameWinPoint](#setgamewinpoint) Sets the number of points won in the base game. +- [GetGameWinPoint](#getgamewinpoint) Gets the number of points won in the base game. +- [SetFeatureWinPoint](#setfeaturewinpoint) Sets the number of points won in the feature game. +- [GetFeatureWinPoint](#getfeaturewinpoint) Gets the number of points won in the feature game. +- [GetTotalWinPoint](#gettotalwinpoint) Gets the total number of points won (game + feature). + +--- + +## Details + +### Properties + +#### featureHitRule + +> Rule that determines how the feature is triggered. + +| meta | description | +| :--- | :---------- | +| Type | String | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L7](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L7) | + +--- + +#### featurePlayedCount + +> Number of times the feature has been played. + +| meta | description | +| :--- | :---------- | +| Type | Number | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L8](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L8) | + +--- + +#### gameWinPoint + +> Points won in the base game. + +| meta | description | +| :--- | :---------- | +| Type | Number | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L9](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L9) | + +--- + +#### featureWinPoint + +> Points won in the feature game. + +| meta | description | +| :--- | :---------- | +| Type | Number | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L10](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L10) | + +--- + +### Methods + +#### Reset + +Resets all model properties to default values. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L16](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L16) | + +--- + +#### SetFeaturePlayedCount + +Sets the number of times the feature has been played. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L25](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L25) | + +--- + +#### GetFeaturePlayedCount + +Gets the number of times the feature has been played. + +| meta | description | +| :--- | :---------- | +| Returns | Number | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L31](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L31) | + +--- + +#### SetFeatureHitRule + +Sets the rule used to trigger the feature. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L35](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L35) | + +--- + +#### GetFeatureHitRule + +Gets the feature hit rule. + +| meta | description | +| :--- | :---------- | +| Returns | String | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#41](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#41) | + +--- + +#### SetGameWinPoint + +Sets the number of points won in the base game. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L45](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L45) | + +--- + +#### GetGameWinPoint + +Gets the number of points won in the base game. + +| meta | description | +| :--- | :---------- | +| Returns | Number | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L51](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L51) | + +--- + +#### SetFeatureWinPoint + +Sets the number of points won in the feature game. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L55](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L55) | + +--- + +#### GetFeatureWinPoint + +Gets the number of points won in the feature game. + +| meta | description | +| :--- | :---------- | +| Returns | Number | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L61](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L61) | + +--- + +#### GetTotalWinPoint + +Gets the total number of points won (game + feature). + +| meta | description | +| :--- | :---------- | +| Returns | Number | +| Defined in | [p4f-slotty-core/src/model/present-feature-win-model.js#L65](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/model/present-feature-win-model.js#L65) | diff --git a/api-doc/slot-machine/present-feature-win/present-feature-win-view.md b/api-doc/slot-machine/present-feature-win/present-feature-win-view.md new file mode 100644 index 0000000..fd66602 --- /dev/null +++ b/api-doc/slot-machine/present-feature-win/present-feature-win-view.md @@ -0,0 +1,24 @@ +--- +sidebar_position: 3 +--- +# Present Feature Win View + +## Index + +### Methods + +- [PresentComplete](#presentcomplete) Triggers the `PresentFeatureWinCompleted` event. + +--- + +## Details + +### Methods + +#### PresentComplete + +Triggers the `PresentFeatureWinCompleted` event which signals that the feature win presentation has completed. + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/view/present-feature-win-view.js#L13](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/commit/7fbf58bf2ad8edec4258757b353151b638c96652/src/view/present-feature-win-view.js#L13) |