pixi-rainman-game-engine 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/dist/ComponentRegistry/ComponentRegistry.d.ts +23 -9
  2. package/dist/ComponentRegistry/ComponentRegistry.js +25 -10
  3. package/dist/ComponentRegistry/types.d.ts +3 -4
  4. package/dist/DescribedPlayableAction/DescribedPlayableAction.d.ts +2 -0
  5. package/dist/DescribedPlayableAction/DescribedPlayableAction.js +2 -0
  6. package/dist/Money/MoneyText.d.ts +5 -0
  7. package/dist/Money/MoneyText.js +5 -0
  8. package/dist/Rainman/appConfig.js +1 -0
  9. package/dist/Rainman/types.d.ts +1 -0
  10. package/dist/SettingsUI/hooks/useBuyFreeSpins/useBuyFreeSpins.d.ts +4 -0
  11. package/dist/SettingsUI/hooks/useBuyFreeSpins/useBuyFreeSpins.js +4 -0
  12. package/dist/SettingsUI/hooks/useDeviceOrientations.d.ts +4 -0
  13. package/dist/SettingsUI/hooks/useDeviceOrientations.js +4 -0
  14. package/dist/application/ApiConfig/ApiConfig.d.ts +2 -1
  15. package/dist/application/ApiConfig/ApiConfig.js +3 -2
  16. package/dist/application/ApiConfig/SymbolId.d.ts +1 -1
  17. package/dist/application/ButtonsEventManager/ButtonsEventManager.d.ts +42 -5
  18. package/dist/application/ButtonsEventManager/ButtonsEventManager.js +51 -9
  19. package/dist/application/SoundManager/SoundManager.d.ts +26 -1
  20. package/dist/application/SoundManager/SoundManager.js +30 -2
  21. package/dist/application/SpeedState/SpeedAdapter.d.ts +9 -0
  22. package/dist/application/SpeedState/SpeedAdapter.js +9 -0
  23. package/dist/application/SpeedState/SpeedLevel.d.ts +42 -0
  24. package/dist/application/SpeedState/SpeedLevel.js +30 -0
  25. package/dist/application/SpeedState/SpeedLevelHandler.d.ts +7 -0
  26. package/dist/application/SpeedState/SpeedLevelHandler.js +7 -0
  27. package/dist/application/SpinLogic/SpinLogic.d.ts +58 -0
  28. package/dist/application/SpinLogic/SpinLogic.js +58 -0
  29. package/dist/application/SpinLogic/SpinLogicDTO.d.ts +70 -0
  30. package/dist/application/SpinLogic/SpinLogicDTO.js +70 -0
  31. package/dist/application/SpinLogic/WinScenarios.d.ts +12 -0
  32. package/dist/application/SpinLogic/WinScenarios.js +12 -0
  33. package/dist/application/SpinLogic/types.d.ts +10 -0
  34. package/dist/application/TimedActions/IncentiveComponent.d.ts +10 -0
  35. package/dist/application/TimedActions/IncentiveComponent.js +9 -1
  36. package/dist/application/TimedActions/TimedIncentiveController.d.ts +37 -0
  37. package/dist/application/TimedActions/TimedIncentiveController.js +37 -0
  38. package/dist/application/setup.d.ts +0 -1
  39. package/dist/application/setup.js +0 -1
  40. package/dist/components/AbstractFreeSpinContainer/AbstractFreeSpinContainer.d.ts +36 -1
  41. package/dist/components/AbstractFreeSpinContainer/AbstractFreeSpinContainer.js +25 -0
  42. package/dist/components/AbstractMainContainer/AbstractMainContainer.d.ts +83 -2
  43. package/dist/components/AbstractMainContainer/AbstractMainContainer.js +97 -11
  44. package/dist/components/DoubleBorderText/DoubleBorderText.d.ts +10 -0
  45. package/dist/components/DoubleBorderText/DoubleBorderText.js +24 -0
  46. package/dist/components/DoubleBorderText/index.d.ts +1 -0
  47. package/dist/components/DoubleBorderText/index.js +1 -0
  48. package/dist/components/GambleGame/GambleGame.d.ts +39 -0
  49. package/dist/components/GambleGame/GambleGame.js +44 -3
  50. package/dist/components/GambleGame/types.d.ts +5 -0
  51. package/dist/components/buttons/BaseButton/BaseButton.d.ts +73 -2
  52. package/dist/components/buttons/BaseButton/BaseButton.js +73 -2
  53. package/dist/components/buttons/BaseButton/types.d.ts +5 -0
  54. package/dist/components/buttons/buttonGroups/LeftButtons.d.ts +11 -0
  55. package/dist/components/buttons/buttonGroups/LeftButtons.js +11 -0
  56. package/dist/components/buttons/buttonGroups/LeftButtonsLandscape.d.ts +13 -1
  57. package/dist/components/buttons/buttonGroups/LeftButtonsLandscape.js +13 -1
  58. package/dist/components/buttons/buttonGroups/LeftButtonsMobile.d.ts +19 -1
  59. package/dist/components/buttons/buttonGroups/LeftButtonsMobile.js +19 -1
  60. package/dist/components/buttons/buttonGroups/MiddleButtons.d.ts +27 -2
  61. package/dist/components/buttons/buttonGroups/MiddleButtons.js +46 -3
  62. package/dist/components/buttons/buttonGroups/RightButtons.d.ts +19 -3
  63. package/dist/components/buttons/buttonGroups/RightButtons.js +29 -1
  64. package/dist/components/buttons/buttonGroups/RightButtonsLandscape.d.ts +11 -0
  65. package/dist/components/buttons/buttonGroups/RightButtonsLandscape.js +11 -0
  66. package/dist/components/buttons/buttonGroups/RightButtonsMobile.d.ts +17 -0
  67. package/dist/components/buttons/buttonGroups/RightButtonsMobile.js +17 -0
  68. package/dist/components/buttons/default/AutoplayButton.d.ts +6 -0
  69. package/dist/components/buttons/default/AutoplayButton.js +8 -1
  70. package/dist/components/buttons/default/GambleButton.d.ts +13 -0
  71. package/dist/components/buttons/default/GambleButton.js +43 -0
  72. package/dist/components/buttons/default/RefreshButton.d.ts +30 -0
  73. package/dist/components/buttons/default/RefreshButton.js +36 -3
  74. package/dist/components/buttons/default/SpeedControlButton.d.ts +2 -0
  75. package/dist/components/buttons/default/SpeedControlButton.js +2 -0
  76. package/dist/components/buttons/default/TakeButton.d.ts +13 -0
  77. package/dist/components/buttons/default/TakeButton.js +37 -0
  78. package/dist/components/buttons/default/VolumeButton.d.ts +2 -0
  79. package/dist/components/buttons/default/VolumeButton.js +2 -0
  80. package/dist/components/buttons/default/index.d.ts +2 -0
  81. package/dist/components/buttons/default/index.js +2 -0
  82. package/dist/components/buttons/registrynames.d.ts +2 -0
  83. package/dist/components/buttons/registrynames.js +3 -1
  84. package/dist/components/common/AnimatedBackground.d.ts +22 -0
  85. package/dist/components/common/AnimatedBackground.js +22 -0
  86. package/dist/components/common/AnimatedNumber.d.ts +36 -0
  87. package/dist/components/common/AnimatedNumber.js +36 -0
  88. package/dist/components/common/Background.d.ts +20 -0
  89. package/dist/components/common/Background.js +22 -1
  90. package/dist/components/common/FreeSpinButton.d.ts +33 -1
  91. package/dist/components/common/FreeSpinButton.js +37 -4
  92. package/dist/components/common/IResizableContainer.d.ts +4 -0
  93. package/dist/components/common/Logo.d.ts +21 -0
  94. package/dist/components/common/Logo.js +21 -0
  95. package/dist/components/common/LogoStatic.d.ts +10 -0
  96. package/dist/components/common/LogoStatic.js +10 -0
  97. package/dist/components/common/ResponsiveComponent.d.ts +22 -0
  98. package/dist/components/common/ResponsiveComponent.js +10 -0
  99. package/dist/components/common/ResumableContainers.d.ts +6 -0
  100. package/dist/components/common/ResumableContainers.js +6 -0
  101. package/dist/components/common/ScalableSpine.d.ts +11 -0
  102. package/dist/components/common/ScalableSpine.js +11 -0
  103. package/dist/components/frame/AbstractColumnsContainer.d.ts +20 -6
  104. package/dist/components/frame/AbstractColumnsContainer.js +18 -4
  105. package/dist/components/frame/AbstractFrame.d.ts +115 -0
  106. package/dist/components/frame/AbstractFrame.js +97 -2
  107. package/dist/components/frame/AbstractInnerFrame.d.ts +5 -0
  108. package/dist/components/frame/AbstractInnerFrame.js +5 -0
  109. package/dist/components/frame/WinLineAnimation.d.ts +10 -0
  110. package/dist/components/frame/WinLineAnimation.js +12 -1
  111. package/dist/components/frame/constants.d.ts +7 -0
  112. package/dist/components/frame/constants.js +3 -0
  113. package/dist/components/index.d.ts +1 -0
  114. package/dist/components/index.js +1 -0
  115. package/dist/components/messageBox/MessageBox.d.ts +33 -0
  116. package/dist/components/messageBox/MessageBox.js +34 -1
  117. package/dist/components/symbols/AbstractSymbolBase.d.ts +146 -2
  118. package/dist/components/symbols/AbstractSymbolBase.js +137 -14
  119. package/dist/components/symbols/AbstractSymbolsColumn.d.ts +233 -3
  120. package/dist/components/symbols/AbstractSymbolsColumn.js +220 -10
  121. package/dist/components/symbols/DroppableSymbol.d.ts +16 -0
  122. package/dist/components/symbols/DroppableSymbol.js +16 -0
  123. package/dist/components/symbols/DroppableSymbolsColumn.d.ts +51 -0
  124. package/dist/components/symbols/DroppableSymbolsColumn.js +57 -3
  125. package/dist/components/symbols/types.d.ts +8 -0
  126. package/dist/components/symbols/types.js +4 -0
  127. package/dist/components/updatable/GambleUpdatableText.d.ts +5 -0
  128. package/dist/components/updatable/GambleUpdatableText.js +5 -0
  129. package/dist/components/updatable/StylefulUpdatableText.d.ts +23 -0
  130. package/dist/components/updatable/StylefulUpdatableText.js +25 -1
  131. package/dist/components/updatable/UpdatableValueComponent.d.ts +71 -0
  132. package/dist/components/updatable/UpdatableValueComponent.js +77 -4
  133. package/dist/connectivity/ConnectionWrapper.d.ts +20 -1
  134. package/dist/connectivity/ConnectionWrapper.js +23 -3
  135. package/dist/connectivity/LocalConnectionWrapper.d.ts +2 -2
  136. package/dist/connectivity/LocalConnectionWrapper.js +2 -2
  137. package/dist/connectivity/serverConnection.d.ts +59 -0
  138. package/dist/connectivity/serverData.d.ts +3 -1
  139. package/dist/connectivity/spinData.d.ts +15 -0
  140. package/dist/connectivity/spinData.js +15 -0
  141. package/dist/constants/gamePhase.d.ts +4 -0
  142. package/dist/controllers/AbstractController.d.ts +114 -5
  143. package/dist/controllers/AbstractController.js +180 -37
  144. package/dist/controllers/QuickStopController.d.ts +3 -0
  145. package/dist/controllers/QuickStopController.js +3 -0
  146. package/dist/controllers/UiController.d.ts +163 -1
  147. package/dist/controllers/UiController.js +170 -5
  148. package/dist/errors/LanguageNotDefinedError.d.ts +4 -0
  149. package/dist/errors/LanguageNotDefinedError.js +4 -0
  150. package/dist/errors/SpineDataNotFound.d.ts +4 -0
  151. package/dist/errors/SpineDataNotFound.js +4 -0
  152. package/dist/errors/TextureNotFound.d.ts +4 -0
  153. package/dist/errors/TextureNotFound.js +4 -0
  154. package/dist/loading/AbstractLoadingContainer.d.ts +16 -0
  155. package/dist/loading/AbstractLoadingContainer.js +16 -0
  156. package/dist/loading/SpriteLoadingContainer.d.ts +18 -0
  157. package/dist/loading/SpriteLoadingContainer.js +18 -0
  158. package/dist/localStorage/localStorage.d.ts +23 -0
  159. package/dist/localStorage/localStorage.js +19 -0
  160. package/dist/stores/SettingsStore.d.ts +276 -4
  161. package/dist/stores/SettingsStore.js +309 -14
  162. package/dist/stores/types.d.ts +4 -0
  163. package/dist/utils/assets/assetGetter.js +6 -3
  164. package/dist/utils/common/deviceOrientation.js +2 -1
  165. package/dist/utils/common/functions.d.ts +57 -1
  166. package/dist/utils/common/functions.js +63 -4
  167. package/dist/utils/common/logger.js +4 -2
  168. package/dist/utils/common/placementHelpers.d.ts +14 -0
  169. package/dist/utils/common/placementHelpers.js +20 -1
  170. package/dist/utils/common/screenHelpers.d.ts +28 -0
  171. package/dist/utils/common/screenHelpers.js +34 -3
  172. package/dist/utils/common/sound.d.ts +1 -0
  173. package/dist/utils/common/sound.js +2 -0
  174. package/dist/utils/common/stats.d.ts +1 -0
  175. package/dist/utils/common/stats.js +2 -0
  176. package/dist/winComponents/AnimableParticlesEmitter.d.ts +6 -0
  177. package/dist/winComponents/AnimableParticlesEmitter.js +6 -0
  178. package/dist/winComponents/BaseWinContainer.d.ts +64 -0
  179. package/dist/winComponents/BaseWinContainer.js +66 -1
  180. package/dist/winComponents/PositioningFrame.d.ts +7 -0
  181. package/dist/winComponents/PositioningFrame.js +7 -0
  182. package/dist/winComponents/TexturedText.d.ts +23 -0
  183. package/dist/winComponents/TexturedText.js +23 -0
  184. package/dist/winComponents/UpdatableSpineContainer.d.ts +25 -0
  185. package/dist/winComponents/UpdatableSpineContainer.js +25 -0
  186. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { Container, Sprite, Text } from "pixi.js";
2
2
  import { Spine } from "pixi-spine";
3
+ import { Nullable } from "../../utils";
3
4
  /**
4
5
  * This class represents summary and information at start of free games
5
6
  * @abstract
@@ -9,16 +10,50 @@ import { Spine } from "pixi-spine";
9
10
  */
10
11
  export declare abstract class AbstractFreeSpinContainer extends Container {
11
12
  protected abstract freeSpinPlate: Sprite | Spine;
12
- shownAt: number | null;
13
+ shownAt: Nullable<number>;
13
14
  protected scaleMultiplier: number;
14
15
  protected constructor();
15
16
  /**
16
17
  * This getter enables to remove container after you click Refresh button or you click space
18
+ * @abstract
19
+ * @public
20
+ * @returns {() => void}
17
21
  */
18
22
  abstract get onClick(): () => void;
23
+ /**
24
+ * This getter enables to remove container after you click Refresh button or you click space
25
+ * @public
26
+ * @returns {Promise<void>} function to remove container
27
+ */
19
28
  onStart(): Promise<void>;
29
+ /**
30
+ * This method is used to resize the container
31
+ * It sets the scale of the container based on the global minimum ratio
32
+ * and repositions the container to the center of the screen.
33
+ * @public
34
+ * @returns {void}
35
+ */
20
36
  resize(): void;
37
+ /**
38
+ * This method is used to reposition the container to the center of the screen
39
+ * It sets the x and y position of the container based on the screen width and height.
40
+ * @protected
41
+ * @returns {void}
42
+ */
21
43
  protected reposition(): void;
44
+ /**
45
+ * This method is used to center the component inside the free spin plate
46
+ * It sets the x position of the component to the center of the free spin plate.
47
+ * @protected
48
+ * @param {Text | Container} component - component to center
49
+ * @returns {void}
50
+ */
22
51
  protected centerComponent(component: Text | Container): void;
52
+ /**
53
+ * This method is used to initialize the positions of the child components
54
+ * @protected
55
+ * @abstract
56
+ * @returns {void}
57
+ */
23
58
  protected abstract initChildPositions(): void;
24
59
  }
@@ -18,16 +18,41 @@ export class AbstractFreeSpinContainer extends Container {
18
18
  this.shownAt = performance.now();
19
19
  this.parentLayer = UXLayer;
20
20
  }
21
+ /**
22
+ * This getter enables to remove container after you click Refresh button or you click space
23
+ * @public
24
+ * @returns {Promise<void>} function to remove container
25
+ */
21
26
  async onStart() { }
27
+ /**
28
+ * This method is used to resize the container
29
+ * It sets the scale of the container based on the global minimum ratio
30
+ * and repositions the container to the center of the screen.
31
+ * @public
32
+ * @returns {void}
33
+ */
22
34
  resize() {
23
35
  this.scale.set(globalMinRatio() * this.scaleMultiplier);
24
36
  this.reposition();
25
37
  this.initChildPositions();
26
38
  }
39
+ /**
40
+ * This method is used to reposition the container to the center of the screen
41
+ * It sets the x and y position of the container based on the screen width and height.
42
+ * @protected
43
+ * @returns {void}
44
+ */
27
45
  reposition() {
28
46
  this.x = RainMan.app.screen.width / 2 - this.width / 2;
29
47
  this.y = RainMan.app.screen.height / 2 - this.height / 2;
30
48
  }
49
+ /**
50
+ * This method is used to center the component inside the free spin plate
51
+ * It sets the x position of the component to the center of the free spin plate.
52
+ * @protected
53
+ * @param {Text | Container} component - component to center
54
+ * @returns {void}
55
+ */
31
56
  centerComponent(component) {
32
57
  component.x = this.freeSpinPlate.width / 2 - component.width / 2;
33
58
  }
@@ -26,6 +26,7 @@ import { MessageBox } from "../messageBox";
26
26
  * - {@link overlay} - overlay, used when modal is shown
27
27
  * - {@link gambleGame} - gamble game
28
28
  * @abstract
29
+ * @class AbstractMainContainer
29
30
  * @augments {Container}
30
31
  */
31
32
  export declare abstract class AbstractMainContainer extends Container {
@@ -63,6 +64,7 @@ export declare abstract class AbstractMainContainer extends Container {
63
64
  protected constructor();
64
65
  /**
65
66
  * Function for invoking mystery win plate
67
+ * @public
66
68
  * @param {string} _animationName - The name of the animation to play.
67
69
  * @param {string} _popupAnimation - The name of the popup animation to play.
68
70
  * @param {WinTypeId} _winType - The type of win to display.
@@ -73,21 +75,26 @@ export declare abstract class AbstractMainContainer extends Container {
73
75
  invokeMysteryWinPlate(_animationName: string, _popupAnimation: string, _winType: WinTypeId, _amount: number, _isAdditionalFreeSpins: boolean): Promise<void>;
74
76
  /**
75
77
  * This function initializes the spines that should be paused when the battery saver is on
78
+ * @protected
76
79
  * @param {typeof RainMan.settingsStore.containersWithSpines} containersWithSpines - array of containers with spines
80
+ * @returns {void}
77
81
  */
78
82
  protected triggerStoreInitState(...containersWithSpines: typeof RainMan.settingsStore.containersWithSpines): void;
79
83
  /**
80
84
  * Function for getting free spin plate
85
+ * @public
81
86
  * @returns {Nullable<AbstractFreeSpinContainer>} The container for the free spin plate, or null if not set.
82
87
  */
83
88
  get freeSpinPlate(): Nullable<AbstractFreeSpinContainer>;
84
89
  /**
85
90
  * Function for getting free spin summary
91
+ * @public
86
92
  * @returns {Nullable<AbstractFreeSpinContainer>} The container for the free spin summary, or null if not set.
87
93
  */
88
94
  get freeSpinSummary(): Nullable<AbstractFreeSpinContainer>;
89
95
  /**
90
96
  * Function for creating free spin container
97
+ * @protected
91
98
  * @param {() => void} _resolver - resolver for promise
92
99
  * @param {number} _freeSpinCount - number of free spins
93
100
  * @param {boolean} _isAdditionalFreeSpin - flag for displaying additional free spins
@@ -96,21 +103,25 @@ export declare abstract class AbstractMainContainer extends Container {
96
103
  protected createFreeSpinPlate(_resolver: () => void, _freeSpinCount: number, _isAdditionalFreeSpin: boolean): AbstractFreeSpinContainer | null;
97
104
  /**
98
105
  * Function for creating bonus win container
106
+ * @protected
99
107
  * @returns {Nullable<UpdatableSpineContainer>} The container for the bonus win animation, or null.
100
108
  */
101
109
  protected createBonusWinContainer(): Nullable<UpdatableSpineContainer>;
102
110
  /**
103
111
  * Creates a container for the super bonus win animation.
112
+ * @protected
104
113
  * @returns {UpdatableSpineContainer | null} The container for the super bonus win animation, or null.
105
114
  */
106
115
  protected createSuperBonusWinContainer(): Nullable<UpdatableSpineContainer>;
107
116
  /**
108
117
  * Function for creating mystery win container
118
+ * @protected
109
119
  * @returns {Nullable<UpdatableSpineContainer>} The container for the mystery win animation, or null.
110
120
  */
111
121
  protected createMysteryWinContainer(): Nullable<UpdatableSpineContainer> | MysteryWinContainer;
112
122
  /**
113
123
  * Function for creating mystery bonus container
124
+ * @protected
114
125
  * @param {string} _animationName - animation name for the mystery bonus container
115
126
  * @returns {Nullable<UpdatableSpineContainer>} The container for the mystery bonus animation, or null.
116
127
  */
@@ -119,27 +130,34 @@ export declare abstract class AbstractMainContainer extends Container {
119
130
  * Function for specifying the container for the free spin summary
120
131
  * This needs to be implemented in each game
121
132
  * In some cases there will be free spin button that should be removed during free spins
133
+ * @protected
134
+ * @returns {void}
122
135
  */
123
136
  protected changeContainerForFreeSpin(): void;
124
137
  /**
125
138
  * Function for specifying the container for base game
126
139
  * This needs to be implemented in each game
140
+ * @protected
141
+ * @returns {void}
127
142
  */
128
143
  protected changeContainerForBaseGame(): void;
129
144
  /**
130
145
  * Function for creating roulette win container
146
+ * @protected
131
147
  * @param {string} _animationName animation name for the roulette container
132
148
  * @returns {Nullable<UpdatableSpineContainer>} The container for the roulette win animation, or null.
133
149
  */
134
150
  protected createRouletteContainer(_animationName: string): Nullable<UpdatableSpineContainer>;
135
151
  /**
136
152
  * Function for destroying the roulette win container
153
+ * @protected
137
154
  * @param {WinTypeId} winType win type of jackpot roulette win
138
155
  * @returns {void}
139
156
  */
140
157
  protected destroyRouletteWin(winType: WinTypeId): void;
141
158
  /**
142
159
  * Function for invoking mystery bonus container
160
+ * @protected
143
161
  * @param {string} animationName animation name for the mystery bonus container
144
162
  * @returns {Promise<void>}
145
163
  */
@@ -148,12 +166,15 @@ export declare abstract class AbstractMainContainer extends Container {
148
166
  * Function for invoking free spin plate
149
167
  * If game draw an additional free spin, you can set isAdditionalFreeSpin to true
150
168
  * and it will display additional free spin plate
169
+ * @public
151
170
  * @param {number} freeSpinCount - number of free spins
152
171
  * @param {boolean} isAdditionalFreeSpin - flag for displaying additional free spins
172
+ * @returns {Promise<void>}
153
173
  */
154
174
  invokeFreeSpinPlate(freeSpinCount: number, isAdditionalFreeSpin?: boolean): Promise<void>;
155
175
  /**
156
176
  * Function for creating free spin summary
177
+ * @protected
157
178
  * @param {void} _resolver - resolver for promise
158
179
  * @param {number} _freeSpinCount - number of free spins
159
180
  * @param {number} _winAmount - win amount during free spins
@@ -162,12 +183,15 @@ export declare abstract class AbstractMainContainer extends Container {
162
183
  protected createFreeSpinSummary(_resolver: () => void, _freeSpinCount: number, _winAmount: number): AbstractFreeSpinContainer | null;
163
184
  /**
164
185
  * Function for invoking free spin summary
186
+ * @public
165
187
  * @param {number} freeSpinCount - amount of free spins
166
188
  * @param {number} winAmount - win amount during free spins
189
+ * @returns {Promise<void>}
167
190
  */
168
191
  invokeFreeSpinSummary(freeSpinCount: number, winAmount: number): Promise<void>;
169
192
  /**
170
193
  * Function for hiding free spin summary
194
+ * @public
171
195
  * @returns {void}
172
196
  */
173
197
  hideFreeSpinSummary(): void;
@@ -175,118 +199,164 @@ export declare abstract class AbstractMainContainer extends Container {
175
199
  * Function for showing the overlay
176
200
  * This function creates a semi-transparent overlay that covers the entire screen.
177
201
  * It is used to block interactions with the game while a modal is displayed.
202
+ * @protected
203
+ * @returns {void}
178
204
  */
179
205
  protected showOverlay(): void;
180
206
  /**
181
207
  * Function for hiding the overlay
182
208
  * This function removes the overlay from the main container and sets it to null.
209
+ * @protected
210
+ * @returns {void}
183
211
  */
184
212
  protected hideOverlay(): void;
185
213
  /**
186
214
  * Function for getting the time since the big win was invoked.
215
+ * @public
187
216
  * @returns {number} The time in milliseconds since the big win was invoked, or 0 if it has not been invoked.
188
217
  */
189
218
  get bigWinVisibleFor(): number;
190
219
  /**
191
220
  * Function for getting the free spin button.
221
+ * @public
192
222
  * @returns {typeof this.freeSpinButton} The free spin button instance.
193
223
  */
194
224
  getFreeSpinButton(): typeof this.freeSpinButton;
195
225
  /**
196
226
  * Function for getting the time since the mystery win was invoked.
227
+ * @public
197
228
  * @returns {number} The time in milliseconds since the mystery win was invoked, or 0 if it has not been invoked.
198
229
  */
199
230
  get mysteryWinVisibleFor(): number;
200
231
  /**
201
232
  * Function for getting the time since the bonus win was invoked.
233
+ * @public
202
234
  * @returns {number} The time in milliseconds since the bonus win was invoked, or 0 if it has not been invoked.
203
235
  */
204
236
  get bonusWinVisibleFor(): number;
205
237
  /**
206
238
  * Function for getting the time since the super bonus win was invoked.
239
+ * @public
207
240
  * @returns {number} The time in milliseconds since the super bonus win was invoked, or 0 if it has not been invoked.
208
241
  */
209
242
  get superBonusWinVisibleFor(): number;
210
243
  /**
211
244
  * Abstract function for creating the big win container.
212
245
  * This function should be implemented in each game to create a specific big win container.
246
+ * @protected
247
+ * @abstract
248
+ * @returns {UpdatableSpineContainer | MysteryWinContainer} big win container
213
249
  */
214
250
  protected abstract createBigWinContainer(): UpdatableSpineContainer | MysteryWinContainer;
215
251
  /**
216
252
  * Function for invoking big win animation, using `this.createBigWinContainer()` abstract function.
253
+ * @public
254
+ * @returns {void}
217
255
  */
218
256
  invokeBigWin(): void;
219
257
  /**
220
258
  * Function for invoking big win animation, using `this.createSuperBonusWinContainer()` abstract function.
259
+ * @public
260
+ * @returns {void}
221
261
  */
222
262
  invokeSuperBonusWin(): void;
223
263
  /**
224
264
  * Function for invoking big win animation, using `this.createBonusWinContainer()` abstract function.
265
+ * @public
266
+ * @returns {void}
225
267
  */
226
268
  invokeBonusWin(): void;
227
269
  /**
228
270
  * Function for invoking mystery win animation, using `this.createMysteryWinContainer()` abstract function.
271
+ * @public
272
+ * @returns {void}
229
273
  */
230
274
  invokeMysteryWin(): void;
231
275
  /**
232
276
  * Function for destroying the big win container
233
277
  * This function removes the big win container from the main container,
234
278
  * destroys its animations, and sets it to null.
279
+ * @public
280
+ * @returns {void}
235
281
  */
236
282
  destroyBigWin(): void;
237
283
  /**
238
284
  * Function for destroying the mystery win container
285
+ * @public
286
+ * @returns {void}
239
287
  */
240
288
  destroyMysteryWin(): void;
241
289
  /**
242
290
  * Function for destroying the bonus win container
291
+ * **NOTE**: This is used in game like LDE/LP, where there is different behavior for bonus wins
292
+ * @public
293
+ * @returns {void}
243
294
  */
244
295
  destroyBonusWin(): void;
245
296
  /**
246
297
  * Function for destroying the super bonus win container
298
+ * **NOTE**: This is used in game like LDE/LP, where there is different behavior for super bonus wins
299
+ * @public
300
+ * @returns {void}
247
301
  */
248
302
  destroySuperBonusWin(): void;
303
+ /**
304
+ * This is used in game like DC where we have container that draws the bonus or jackpots
305
+ * @public
306
+ * @returns {void}
307
+ */
249
308
  destroyMysteryBonus(): void;
250
309
  /**
251
310
  * Function for invoking gamble game
311
+ * @public
252
312
  * @returns {Promise<void>} - A promise that resolves when the gamble game is finished.
253
313
  */
254
314
  invokeGambleGame(): Promise<void>;
255
315
  /**
256
316
  * Function for creating the under frame panel.
257
317
  * This panel is used in mobile portrait mode to display additional information.
318
+ * @protected
258
319
  * @returns {Graphics | Sprite} The under frame panel as a Graphics or Sprite object.
259
320
  */
260
321
  protected createUnderFramePanel(): Graphics | Sprite;
261
322
  /**
262
323
  * Function for enabling mobile portrait mode.
263
324
  * It creates the under frame panel, portrait play buttons, and adds them to the container.
325
+ * @public
264
326
  * @returns {void}
265
327
  */
266
328
  enableForMobile(): void;
267
329
  /**
268
330
  * Function for enabling landscape mode.
331
+ * @public
269
332
  * @returns {void}
270
333
  */
271
334
  enableForLandscape(): void;
272
335
  /**
273
336
  * Function for positioning the round win container.
337
+ * @protected
274
338
  * @returns {void}
275
339
  */
276
340
  protected positionRoundWinContainer(): void;
277
341
  /**
278
342
  * Function for invoking the roulette win plate.
343
+ * @public
279
344
  * @param {string} winAnimationName The name of the win animation.
280
345
  * @param {WinTypeId} winType The type of win.
281
346
  * @param {string} startAnimationName The name of the start animation defaulting to "start".
347
+ * @returns {Promise<void>}
282
348
  */
283
349
  invokeRouletteWinPlate(winAnimationName: string, winType: WinTypeId, startAnimationName?: string): Promise<void>;
284
350
  /**
285
351
  * Function for disabling components for mobile portrait orientation.
352
+ * @public
353
+ * @returns {void}
286
354
  */
287
355
  disableForMobile(): void;
288
356
  /**
289
357
  * Function for disabling components for landscape orientation.
358
+ * @public
359
+ * @returns {void}
290
360
  */
291
361
  disableForLandscape(): void;
292
362
  /**
@@ -294,31 +364,38 @@ export declare abstract class AbstractMainContainer extends Container {
294
364
  * This function should be implemented in each game.
295
365
  * @protected
296
366
  * @abstract
367
+ * @returns {void}
297
368
  */
298
369
  protected abstract repositionComponentsForScreenRatio(): void;
299
370
  /**
300
371
  * Function for resizing the main container and its components.
301
372
  * This function removes the current frame and any win containers,
302
373
  * resizes the message box, background, animated front,
374
+ * @public
375
+ * @returns {void}
303
376
  */
304
377
  resize(): void;
305
378
  /**
306
379
  * Function for creating the left buttons
380
+ * @protected
307
381
  * @returns {LeftButtons} - Returns a new instance of LeftButtons.
308
382
  */
309
383
  protected createLeftButtons(): LeftButtons;
310
384
  /**
311
385
  * Function for creating the right buttons
386
+ * @protected
312
387
  * @returns {RightButtons} - Returns a new instance of RightButtons.
313
388
  */
314
389
  protected createRightButtons(): RightButtons;
315
390
  /**
316
391
  * Function for creating the left buttons for mobile portrait orientation
392
+ * @protected
317
393
  * @returns {LeftButtonsMobile} - Returns a new instance of LeftButtonsMobile for mobile portrait orientation.
318
394
  */
319
395
  protected createLeftButtonsMobile(): LeftButtonsMobile;
320
396
  /**
321
397
  * Function for creating the right buttons for mobile portrait orientation
398
+ * @protected
322
399
  * @returns {RightButtonsMobile} - Returns a new instance of RightButtonsMobile for mobile portrait orientation.
323
400
  */
324
401
  protected createRightButtonsMobile(): RightButtonsMobile;
@@ -351,9 +428,9 @@ export declare abstract class AbstractMainContainer extends Container {
351
428
  * It checks the current device orientation and creates the appropriate left and right buttons.
352
429
  * It also removes the previous left and right buttons from the container.
353
430
  * It resizes the right buttons if the current orientation is "mobile-portrait".
354
- * @protected
355
- * @returns {void}
431
+ * @private
356
432
  * @memberof AbstractMainContainer
433
+ * @returns {void}
357
434
  */
358
435
  private initComponentsForScreenRatio;
359
436
  /**
@@ -362,11 +439,15 @@ export declare abstract class AbstractMainContainer extends Container {
362
439
  * under frame panel, overlay, big win container, super bonus win container, bonus win container,
363
440
  * mystery win container, gamble game, bottom panel, free spin plate, and
364
441
  * free spin summary.
442
+ * @private
443
+ * @returns {void}
365
444
  */
366
445
  private resizeDependentComponents;
367
446
  /**
368
447
  * This method is used to refresh the layers in the main container.
369
448
  * It removes the existing layers and adds them back in the correct order.
449
+ * @protected
450
+ * @returns {void}
370
451
  */
371
452
  protected refreshLayers(): void;
372
453
  }