pixi-rainman-game-engine 0.2.2 → 0.2.3
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.
- package/dist/ComponentRegistry/ComponentRegistry.d.ts +0 -17
- package/dist/ComponentRegistry/ComponentRegistry.js +0 -17
- package/dist/ComponentRegistry/types.d.ts +1 -1
- package/dist/Money/MoneyText.d.ts +0 -2
- package/dist/Money/MoneyText.js +0 -2
- package/dist/Rainman/Rainman.d.ts +0 -2
- package/dist/Rainman/Rainman.js +0 -2
- package/dist/Rainman/appConfig.d.ts +0 -1
- package/dist/Rainman/appConfig.js +0 -1
- package/dist/application/ApiConfig/ApiConfig.d.ts +25 -43
- package/dist/application/ApiConfig/ApiConfig.js +25 -43
- package/dist/application/ApiConfig/SymbolId.d.ts +0 -5
- package/dist/application/ApiConfig/TransformationTypesId.d.ts +0 -4
- package/dist/application/ApiConfig/WinTypeId.d.ts +0 -4
- package/dist/application/ButtonsEventManager/ButtonsEventManager.d.ts +11 -32
- package/dist/application/ButtonsEventManager/ButtonsEventManager.js +11 -32
- package/dist/application/SoundManager/SoundManager.d.ts +8 -18
- package/dist/application/SoundManager/SoundManager.js +8 -18
- package/dist/application/SoundManager/types.d.ts +2 -4
- package/dist/application/SoundManager/types.js +1 -2
- package/dist/application/SpeedState/SpeedLevelHandler.d.ts +2 -8
- package/dist/application/SpeedState/SpeedLevelHandler.js +2 -8
- package/dist/application/SpinLogic/SpinLogic.d.ts +0 -2
- package/dist/application/SpinLogic/SpinLogic.js +0 -2
- package/dist/application/SpinLogic/SpinLogicDTO.d.ts +4 -9
- package/dist/application/SpinLogic/SpinLogicDTO.js +4 -9
- package/dist/application/SpinLogic/WinScenarios.d.ts +1 -1
- package/dist/application/SpinLogic/WinScenarios.js +1 -1
- package/dist/application/SpinLogic/util.d.ts +13 -18
- package/dist/application/SpinLogic/util.js +13 -20
- package/dist/components/AbstractFreeSpinContainer/AbstractFreeSpinContainer.d.ts +1 -3
- package/dist/components/AbstractFreeSpinContainer/AbstractFreeSpinContainer.js +1 -3
- package/dist/components/AbstractMainContainer/AbstractMainContainer.d.ts +19 -22
- package/dist/components/AbstractMainContainer/AbstractMainContainer.js +19 -22
- package/dist/components/GambleGame/GambleGame.d.ts +1 -3
- package/dist/components/GambleGame/GambleGame.js +1 -3
- package/dist/components/buttons/BaseButton/BaseButton.d.ts +1 -3
- package/dist/components/buttons/BaseButton/BaseButton.js +1 -3
- package/dist/components/buttons/BaseButton/ButtonState.d.ts +1 -1
- package/dist/components/buttons/BaseButton/ButtonState.js +1 -1
- package/dist/components/buttons/buttonGroups/LeftButtons.d.ts +1 -3
- package/dist/components/buttons/buttonGroups/LeftButtons.js +1 -3
- package/dist/components/buttons/buttonGroups/MiddleButtons.d.ts +0 -1
- package/dist/components/buttons/buttonGroups/MiddleButtons.js +0 -1
- package/dist/components/buttons/buttonGroups/RightButtons.d.ts +2 -3
- package/dist/components/buttons/buttonGroups/RightButtons.js +2 -3
- package/dist/components/buttons/buttonGroups/RightButtonsLandscape.d.ts +1 -1
- package/dist/components/buttons/buttonGroups/RightButtonsLandscape.js +1 -1
- package/dist/components/buttons/default/AutoplayButton.d.ts +2 -3
- package/dist/components/buttons/default/AutoplayButton.js +2 -3
- package/dist/components/buttons/default/BlackButton.d.ts +1 -2
- package/dist/components/buttons/default/BlackButton.js +1 -2
- package/dist/components/buttons/default/CollectButton.d.ts +2 -3
- package/dist/components/buttons/default/CollectButton.js +2 -3
- package/dist/components/buttons/default/InfoButton.d.ts +1 -1
- package/dist/components/buttons/default/InfoButton.js +1 -1
- package/dist/components/buttons/default/MoreButton.d.ts +1 -1
- package/dist/components/buttons/default/MoreButton.js +1 -1
- package/dist/components/buttons/default/NegButton.d.ts +1 -1
- package/dist/components/buttons/default/NegButton.js +1 -1
- package/dist/components/buttons/default/PlusButton.d.ts +1 -1
- package/dist/components/buttons/default/PlusButton.js +1 -1
- package/dist/components/buttons/default/RedButton.d.ts +1 -1
- package/dist/components/buttons/default/RedButton.js +1 -1
- package/dist/components/buttons/default/RefreshButton.d.ts +2 -1
- package/dist/components/buttons/default/RefreshButton.js +2 -1
- package/dist/components/buttons/default/SpeedControlButton.d.ts +1 -1
- package/dist/components/buttons/default/SpeedControlButton.js +1 -1
- package/dist/components/buttons/default/SpinConfirmationButton.d.ts +1 -0
- package/dist/components/buttons/default/SpinConfirmationButton.js +1 -0
- package/dist/components/buttons/default/VolumeButton.d.ts +1 -1
- package/dist/components/buttons/default/VolumeButton.js +1 -1
- package/dist/components/common/AnimatedBackground.d.ts +1 -5
- package/dist/components/common/AnimatedBackground.js +1 -5
- package/dist/components/common/Background.d.ts +3 -5
- package/dist/components/common/Background.js +3 -5
- package/dist/components/common/FreeSpinButton.d.ts +1 -3
- package/dist/components/common/FreeSpinButton.js +1 -3
- package/dist/components/common/Logo.d.ts +1 -3
- package/dist/components/common/Logo.js +1 -3
- package/dist/components/common/LogoStatic.d.ts +1 -3
- package/dist/components/common/LogoStatic.js +1 -3
- package/dist/components/common/ResumableContainers.d.ts +6 -6
- package/dist/components/common/ResumableContainers.js +6 -6
- package/dist/components/frame/AbstractColumnsContainer.d.ts +3 -9
- package/dist/components/frame/AbstractColumnsContainer.js +3 -9
- package/dist/components/frame/AbstractFrame.d.ts +6 -12
- package/dist/components/frame/AbstractFrame.js +6 -12
- package/dist/components/frame/AbstractInnerFrame.d.ts +1 -3
- package/dist/components/frame/AbstractInnerFrame.js +1 -3
- package/dist/components/frame/WinLineAnimation.d.ts +1 -3
- package/dist/components/frame/WinLineAnimation.js +1 -3
- package/dist/components/frame/constants.d.ts +7 -0
- package/dist/components/frame/constants.js +3 -0
- package/dist/components/frame/types.d.ts +4 -0
- package/dist/components/messageBox/MessageBox.d.ts +1 -3
- package/dist/components/messageBox/MessageBox.js +1 -3
- package/dist/components/symbols/AbstractSymbolBase.d.ts +1 -2
- package/dist/components/symbols/AbstractSymbolBase.js +1 -2
- package/dist/components/symbols/AbstractSymbolsColumn.d.ts +1 -3
- package/dist/components/symbols/AbstractSymbolsColumn.js +1 -3
- package/dist/components/symbols/DroppableSymbol.d.ts +0 -2
- package/dist/components/symbols/DroppableSymbol.js +0 -2
- package/dist/components/symbols/DroppableSymbolsColumn.d.ts +0 -2
- package/dist/components/symbols/DroppableSymbolsColumn.js +0 -2
- package/dist/components/symbols/types.d.ts +0 -1
- package/dist/components/symbols/types.js +0 -1
- package/dist/components/updatable/UpdatableTextComponent.d.ts +1 -3
- package/dist/components/updatable/UpdatableTextComponent.js +1 -3
- package/dist/components/updatable/UpdatableValueComponent.d.ts +1 -3
- package/dist/components/updatable/UpdatableValueComponent.js +1 -3
- package/dist/components/winLineIndicator/WinLineIndicator.d.ts +1 -3
- package/dist/components/winLineIndicator/WinLineIndicator.js +1 -3
- package/dist/connectivity/ConnectionWrapper.d.ts +1 -4
- package/dist/connectivity/ConnectionWrapper.js +1 -4
- package/dist/connectivity/LocalConnectionWrapper.d.ts +1 -1
- package/dist/connectivity/LocalConnectionWrapper.js +1 -1
- package/dist/connectivity/apiQueue.d.ts +2 -3
- package/dist/connectivity/apiQueue.js +2 -3
- package/dist/connectivity/wins.d.ts +0 -9
- package/dist/controllers/AbstractController.d.ts +26 -40
- package/dist/controllers/AbstractController.js +27 -40
- package/dist/controllers/QuickStopController.d.ts +1 -1
- package/dist/controllers/QuickStopController.js +1 -1
- package/dist/controllers/UiController.d.ts +2 -4
- package/dist/controllers/UiController.js +2 -4
- package/dist/loading/AbstractLoadingContainer.d.ts +1 -3
- package/dist/loading/AbstractLoadingContainer.js +1 -3
- package/dist/loading/ProgressiveLoader.d.ts +0 -2
- package/dist/loading/SpriteLoadingContainer.d.ts +1 -4
- package/dist/loading/SpriteLoadingContainer.js +1 -4
- package/dist/localStorage/localStorage.d.ts +0 -2
- package/dist/localStorage/localStorage.js +0 -2
- package/dist/stores/SettingsStore.d.ts +5 -10
- package/dist/stores/SettingsStore.js +5 -10
- package/dist/utils/assets/assetGetter.d.ts +10 -18
- package/dist/utils/assets/assetGetter.js +10 -18
- package/dist/utils/common/deviceOrientation.d.ts +1 -2
- package/dist/utils/common/deviceOrientation.js +1 -2
- package/dist/utils/common/functions.d.ts +7 -7
- package/dist/utils/common/functions.js +7 -7
- package/dist/utils/common/placementHelpers.d.ts +2 -3
- package/dist/utils/common/placementHelpers.js +4 -5
- package/dist/winComponents/AnimableParticlesEmitter.d.ts +1 -4
- package/dist/winComponents/AnimableParticlesEmitter.js +1 -4
- package/dist/winComponents/PositioningFrame.d.ts +1 -3
- package/dist/winComponents/PositioningFrame.js +1 -3
- package/dist/winComponents/UpdatableSpineContainer.d.ts +1 -3
- package/dist/winComponents/UpdatableSpineContainer.js +1 -3
- package/dist/winComponents/winFactory.d.ts +8 -9
- package/dist/winComponents/winFactory.js +8 -9
- package/package.json +3 -1
|
@@ -7,12 +7,10 @@ import { AbstractFrame } from "./AbstractFrame";
|
|
|
7
7
|
import { WIN_MULTIPLIER_VALUES } from "./constants";
|
|
8
8
|
/**
|
|
9
9
|
* Class represents columns container in game
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
12
10
|
* @abstract
|
|
13
11
|
* @class AbstractColumnsContainer
|
|
14
12
|
* @typedef {AbstractColumnsContainer}
|
|
15
|
-
* @
|
|
13
|
+
* @augments {Container}
|
|
16
14
|
* @implements {SpeedAdapterInterface<number>}
|
|
17
15
|
*/
|
|
18
16
|
export class AbstractColumnsContainer extends Container {
|
|
@@ -69,9 +67,7 @@ export class AbstractColumnsContainer extends Container {
|
|
|
69
67
|
}
|
|
70
68
|
/**
|
|
71
69
|
* This function is responsible for setting symbols in columns
|
|
72
|
-
*
|
|
73
70
|
* @public
|
|
74
|
-
* @async
|
|
75
71
|
* @param {SymbolReels} finalSymbolReels
|
|
76
72
|
* @param {(value: void | PromiseLike<void>) => void} afterSpinResolver
|
|
77
73
|
* @param {number[]} indexesOfReelsToExtendSpinningTime
|
|
@@ -171,13 +167,11 @@ export class AbstractColumnsContainer extends Container {
|
|
|
171
167
|
}
|
|
172
168
|
/**
|
|
173
169
|
* Function for playing animation of streak
|
|
174
|
-
*
|
|
175
170
|
* @public
|
|
176
|
-
* @async
|
|
177
171
|
* @param {StreakReelsIndexes} streak
|
|
178
172
|
* @param {number} reelsQuantity
|
|
179
|
-
* @param {number} [multiplier
|
|
180
|
-
* @param {string} [suffix
|
|
173
|
+
* @param {number} [multiplier]
|
|
174
|
+
* @param {string} [suffix]
|
|
181
175
|
* @returns {Promise<void>}
|
|
182
176
|
*/
|
|
183
177
|
async playStreak(streak, reelsQuantity, multiplier = 1, suffix = "") {
|
|
@@ -8,13 +8,11 @@ import { MysteryFxCoordinates } from "./types";
|
|
|
8
8
|
import { WinLineAnimation } from "./WinLineAnimation";
|
|
9
9
|
/**
|
|
10
10
|
* Class aggregating all reels and activities related to them. Each frame has its own proportions, which allow for proper positioning on the screen.
|
|
11
|
-
* This represents all of elements in center frame like {@link
|
|
12
|
-
*
|
|
13
|
-
* @export
|
|
11
|
+
* This represents all of elements in center frame like {@link AbstractColumnsContainer}, frame animation (on {@link FrameLayer})
|
|
14
12
|
* @abstract
|
|
15
13
|
* @class AbstractFrame
|
|
16
14
|
* @typedef {AbstractFrame}
|
|
17
|
-
* @
|
|
15
|
+
* @augments {ResumableContainer}
|
|
18
16
|
* @implements {SpeedAdapterInterface<number>}
|
|
19
17
|
*/
|
|
20
18
|
export declare abstract class AbstractFrame extends ResumableContainer implements SpeedAdapterInterface<number> {
|
|
@@ -38,9 +36,8 @@ export declare abstract class AbstractFrame extends ResumableContainer implement
|
|
|
38
36
|
adaptToSpeed(speedLevel: SpeedLevel): void;
|
|
39
37
|
/**
|
|
40
38
|
* Invoke mystery fx on symbol position
|
|
41
|
-
*
|
|
42
|
-
* @param
|
|
43
|
-
* @param y {number}
|
|
39
|
+
* @param {number} x - x position of reel
|
|
40
|
+
* @param {number} y - y position of reel
|
|
44
41
|
*/
|
|
45
42
|
invokeMysteryFx(x: number, y: number): void;
|
|
46
43
|
protected repositionMysteryFx(_x: number, _y: number): void;
|
|
@@ -49,13 +46,12 @@ export declare abstract class AbstractFrame extends ResumableContainer implement
|
|
|
49
46
|
destroyMysteryFx(): void;
|
|
50
47
|
/**
|
|
51
48
|
* Create win line animation, individual for each game, based on {@link WinLineAnimation}
|
|
52
|
-
|
|
49
|
+
*/
|
|
53
50
|
protected createWinLineAnimation(_animationName: string): WinLineAnimation | null;
|
|
54
51
|
playAllWinLineAnimations(animationNames: string[]): Promise<void>;
|
|
55
52
|
/**
|
|
56
53
|
* Creates and plays win line animation.
|
|
57
|
-
*
|
|
58
|
-
* @param animationName
|
|
54
|
+
* @param {string} animationName - name of the winning line to play
|
|
59
55
|
*/
|
|
60
56
|
playWinLineAnimation(animationName: string): Promise<void>;
|
|
61
57
|
stopPlayingWinLineAnimations(): void;
|
|
@@ -68,7 +64,6 @@ export declare abstract class AbstractFrame extends ResumableContainer implement
|
|
|
68
64
|
* This method is use when bonus games are triggered
|
|
69
65
|
* It is used to change the frame animation
|
|
70
66
|
* Remember to change resize for this method
|
|
71
|
-
*
|
|
72
67
|
* @protected
|
|
73
68
|
*/
|
|
74
69
|
protected changeForBonusGame(): void;
|
|
@@ -76,7 +71,6 @@ export declare abstract class AbstractFrame extends ResumableContainer implement
|
|
|
76
71
|
* This method is use when normal game is triggered
|
|
77
72
|
* It is used to change the frame animation
|
|
78
73
|
* Remember to change resize for this method
|
|
79
|
-
*
|
|
80
74
|
* @abstract
|
|
81
75
|
*/
|
|
82
76
|
protected changeForNormalGame(): void;
|
|
@@ -6,13 +6,11 @@ import { getDeviceOrientation, getSpineData, logError, scaleToParent } from "../
|
|
|
6
6
|
import { ResumableContainer } from "../common";
|
|
7
7
|
/**
|
|
8
8
|
* Class aggregating all reels and activities related to them. Each frame has its own proportions, which allow for proper positioning on the screen.
|
|
9
|
-
* This represents all of elements in center frame like {@link
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
9
|
+
* This represents all of elements in center frame like {@link AbstractColumnsContainer}, frame animation (on {@link FrameLayer})
|
|
12
10
|
* @abstract
|
|
13
11
|
* @class AbstractFrame
|
|
14
12
|
* @typedef {AbstractFrame}
|
|
15
|
-
* @
|
|
13
|
+
* @augments {ResumableContainer}
|
|
16
14
|
* @implements {SpeedAdapterInterface<number>}
|
|
17
15
|
*/
|
|
18
16
|
export class AbstractFrame extends ResumableContainer {
|
|
@@ -38,9 +36,8 @@ export class AbstractFrame extends ResumableContainer {
|
|
|
38
36
|
}
|
|
39
37
|
/**
|
|
40
38
|
* Invoke mystery fx on symbol position
|
|
41
|
-
*
|
|
42
|
-
* @param
|
|
43
|
-
* @param y {number}
|
|
39
|
+
* @param {number} x - x position of reel
|
|
40
|
+
* @param {number} y - y position of reel
|
|
44
41
|
*/
|
|
45
42
|
invokeMysteryFx(x, y) {
|
|
46
43
|
if (!this.mysteryFxConfig)
|
|
@@ -87,7 +84,7 @@ export class AbstractFrame extends ResumableContainer {
|
|
|
87
84
|
}
|
|
88
85
|
/**
|
|
89
86
|
* Create win line animation, individual for each game, based on {@link WinLineAnimation}
|
|
90
|
-
|
|
87
|
+
*/
|
|
91
88
|
createWinLineAnimation(_animationName) {
|
|
92
89
|
return null;
|
|
93
90
|
}
|
|
@@ -96,8 +93,7 @@ export class AbstractFrame extends ResumableContainer {
|
|
|
96
93
|
}
|
|
97
94
|
/**
|
|
98
95
|
* Creates and plays win line animation.
|
|
99
|
-
*
|
|
100
|
-
* @param animationName
|
|
96
|
+
* @param {string} animationName - name of the winning line to play
|
|
101
97
|
*/
|
|
102
98
|
async playWinLineAnimation(animationName) {
|
|
103
99
|
const winLineAnimation = this.createWinLineAnimation(animationName);
|
|
@@ -151,7 +147,6 @@ export class AbstractFrame extends ResumableContainer {
|
|
|
151
147
|
* This method is use when bonus games are triggered
|
|
152
148
|
* It is used to change the frame animation
|
|
153
149
|
* Remember to change resize for this method
|
|
154
|
-
*
|
|
155
150
|
* @protected
|
|
156
151
|
*/
|
|
157
152
|
changeForBonusGame() { }
|
|
@@ -159,7 +154,6 @@ export class AbstractFrame extends ResumableContainer {
|
|
|
159
154
|
* This method is use when normal game is triggered
|
|
160
155
|
* It is used to change the frame animation
|
|
161
156
|
* Remember to change resize for this method
|
|
162
|
-
*
|
|
163
157
|
* @abstract
|
|
164
158
|
*/
|
|
165
159
|
changeForNormalGame() { }
|
|
@@ -2,12 +2,10 @@ import { Container } from "pixi.js";
|
|
|
2
2
|
import { AbstractColumnsContainer } from "./AbstractColumnsContainer";
|
|
3
3
|
/**
|
|
4
4
|
* Wrapper class for Columns Container {@link ColumnsContainer}
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
5
|
* @abstract
|
|
8
6
|
* @class AbstractInnerFrame
|
|
9
7
|
* @typedef {AbstractInnerFrame}
|
|
10
|
-
* @
|
|
8
|
+
* @augments {Container}
|
|
11
9
|
*/
|
|
12
10
|
export declare abstract class AbstractInnerFrame extends Container {
|
|
13
11
|
static readonly registryName = "innerFrame";
|
|
@@ -2,12 +2,10 @@ import { Container } from "pixi.js";
|
|
|
2
2
|
import { FrameLayer } from "../../layers";
|
|
3
3
|
/**
|
|
4
4
|
* Wrapper class for Columns Container {@link ColumnsContainer}
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
5
|
* @abstract
|
|
8
6
|
* @class AbstractInnerFrame
|
|
9
7
|
* @typedef {AbstractInnerFrame}
|
|
10
|
-
* @
|
|
8
|
+
* @augments {Container}
|
|
11
9
|
*/
|
|
12
10
|
export class AbstractInnerFrame extends Container {
|
|
13
11
|
static registryName = "innerFrame";
|
|
@@ -2,11 +2,9 @@ import { Spine } from "pixi-spine";
|
|
|
2
2
|
/**
|
|
3
3
|
* Class representing win line
|
|
4
4
|
* This class plays the animation and load it from assets
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
5
|
* @class WinLineAnimation
|
|
8
6
|
* @typedef {WinLineAnimation}
|
|
9
|
-
* @
|
|
7
|
+
* @augments {Spine}
|
|
10
8
|
*/
|
|
11
9
|
export declare class WinLineAnimation extends Spine {
|
|
12
10
|
private readonly animationName;
|
|
@@ -5,11 +5,9 @@ import { getSpineData } from "../../utils";
|
|
|
5
5
|
/**
|
|
6
6
|
* Class representing win line
|
|
7
7
|
* This class plays the animation and load it from assets
|
|
8
|
-
*
|
|
9
|
-
* @export
|
|
10
8
|
* @class WinLineAnimation
|
|
11
9
|
* @typedef {WinLineAnimation}
|
|
12
|
-
* @
|
|
10
|
+
* @augments {Spine}
|
|
13
11
|
*/
|
|
14
12
|
export class WinLineAnimation extends Spine {
|
|
15
13
|
animationName;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Object containing the values for the win multipliers.
|
|
3
|
+
*/
|
|
1
4
|
export declare const WIN_MULTIPLIER_VALUES: {
|
|
2
5
|
readonly LOW_WIN: 1;
|
|
3
6
|
readonly MEDIUM_WIN_MIN: 1.1;
|
|
@@ -6,4 +9,8 @@ export declare const WIN_MULTIPLIER_VALUES: {
|
|
|
6
9
|
readonly HIGH_WIN_MAX: 15;
|
|
7
10
|
readonly VERY_HIGH_WIN: 15.1;
|
|
8
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Type for the win multiplier values.
|
|
14
|
+
* @typedef {WinMultiplierValues}
|
|
15
|
+
*/
|
|
9
16
|
export type WinMultiplierValues = (typeof WIN_MULTIPLIER_VALUES)[keyof typeof WIN_MULTIPLIER_VALUES];
|
|
@@ -8,11 +8,9 @@ import { SymbolId } from "../../application";
|
|
|
8
8
|
* - free spins left
|
|
9
9
|
* - incentive message
|
|
10
10
|
* - win line indicator
|
|
11
|
-
*
|
|
12
|
-
* @export
|
|
13
11
|
* @class MessageBox
|
|
14
12
|
* @typedef {MessageBox}
|
|
15
|
-
* @
|
|
13
|
+
* @augments {Container}
|
|
16
14
|
*/
|
|
17
15
|
export declare class MessageBox extends Container {
|
|
18
16
|
static readonly registryName = "messageBox";
|
|
@@ -13,11 +13,9 @@ import { getDeviceOrientation, globalMinRatio } from "../../utils";
|
|
|
13
13
|
* - free spins left
|
|
14
14
|
* - incentive message
|
|
15
15
|
* - win line indicator
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
16
|
* @class MessageBox
|
|
19
17
|
* @typedef {MessageBox}
|
|
20
|
-
* @
|
|
18
|
+
* @augments {Container}
|
|
21
19
|
*/
|
|
22
20
|
export class MessageBox extends Container {
|
|
23
21
|
static registryName = "messageBox";
|
|
@@ -4,11 +4,10 @@ import { SymbolId } from "../../application";
|
|
|
4
4
|
import { LoadersSpineData, Nullable } from "../../utils";
|
|
5
5
|
/**
|
|
6
6
|
* Class represents symbol which is displayed in columns
|
|
7
|
-
* @export
|
|
8
7
|
* @abstract
|
|
9
8
|
* @class AbstractSymbolBase
|
|
10
9
|
* @typedef {AbstractSymbolBase}
|
|
11
|
-
* @
|
|
10
|
+
* @augments {Container}
|
|
12
11
|
*/
|
|
13
12
|
export declare abstract class AbstractSymbolBase extends Container {
|
|
14
13
|
private multiplierSpineName;
|
|
@@ -6,11 +6,10 @@ import { RainMan } from "../../Rainman";
|
|
|
6
6
|
import { getSpineData, getTexture, togglePaytable } from "../../utils";
|
|
7
7
|
/**
|
|
8
8
|
* Class represents symbol which is displayed in columns
|
|
9
|
-
* @export
|
|
10
9
|
* @abstract
|
|
11
10
|
* @class AbstractSymbolBase
|
|
12
11
|
* @typedef {AbstractSymbolBase}
|
|
13
|
-
* @
|
|
12
|
+
* @augments {Container}
|
|
14
13
|
*/
|
|
15
14
|
export class AbstractSymbolBase extends Container {
|
|
16
15
|
multiplierSpineName;
|
|
@@ -7,12 +7,10 @@ import { AbstractSymbolBase } from "./AbstractSymbolBase";
|
|
|
7
7
|
import { AnimationTimeSettings } from "./types";
|
|
8
8
|
/**
|
|
9
9
|
* Class represent single column in {@link ColumnsContainer}. It contains array of {@link AbstractSymbolBase}
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
12
10
|
* @abstract
|
|
13
11
|
* @class AbstractSymbolsColumn
|
|
14
12
|
* @typedef {AbstractSymbolsColumn}
|
|
15
|
-
* @
|
|
13
|
+
* @augments {Container}
|
|
16
14
|
* @implements {SpeedAdapterInterface<number>}
|
|
17
15
|
*/
|
|
18
16
|
export declare abstract class AbstractSymbolsColumn extends Container implements SpeedAdapterInterface<number> {
|
|
@@ -9,12 +9,10 @@ import { droppableSymbolsFactory } from "./DroppableSymbolsColumn";
|
|
|
9
9
|
import { Phase, Speed } from "./types";
|
|
10
10
|
/**
|
|
11
11
|
* Class represent single column in {@link ColumnsContainer}. It contains array of {@link AbstractSymbolBase}
|
|
12
|
-
*
|
|
13
|
-
* @export
|
|
14
12
|
* @abstract
|
|
15
13
|
* @class AbstractSymbolsColumn
|
|
16
14
|
* @typedef {AbstractSymbolsColumn}
|
|
17
|
-
* @
|
|
15
|
+
* @augments {Container}
|
|
18
16
|
* @implements {SpeedAdapterInterface<number>}
|
|
19
17
|
*/
|
|
20
18
|
export class AbstractSymbolsColumn extends Container {
|
|
@@ -2,8 +2,6 @@ import { SymbolId } from "../../application";
|
|
|
2
2
|
import { AbstractSymbolBase } from "./AbstractSymbolBase";
|
|
3
3
|
/**
|
|
4
4
|
* This class represents symbol that can be dropped from column. Based on transformation type `drop` from {@link transformationTypes}
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
5
|
* @class DroppableSymbol
|
|
8
6
|
* @typedef {DroppableSymbol}
|
|
9
7
|
*/
|
|
@@ -4,8 +4,6 @@ import { DroppableSymbol } from "./DroppableSymbol";
|
|
|
4
4
|
export declare const droppableSymbolsFactory: (sortedByYSymbolsInColumns: AbstractSymbolBase[], numberOfRows: number) => DroppableSymbolsColumn;
|
|
5
5
|
/**
|
|
6
6
|
* Class represents symbol column that can replace symbols
|
|
7
|
-
*
|
|
8
|
-
* @export
|
|
9
7
|
* @class DroppableSymbolsColumn
|
|
10
8
|
* @typedef {DroppableSymbolsColumn}
|
|
11
9
|
*/
|
|
@@ -3,10 +3,8 @@ import { UpdatableValueComponent } from "./UpdatableValueComponent";
|
|
|
3
3
|
/**
|
|
4
4
|
* Class for managing updatable text components
|
|
5
5
|
* This component is used for updating text components i.e: balance, win amount, etc.
|
|
6
|
-
*
|
|
7
|
-
* @exports
|
|
8
6
|
* @class UpdatableTextComponent
|
|
9
|
-
* @
|
|
7
|
+
* @augments {UpdatableValueComponent}
|
|
10
8
|
*/
|
|
11
9
|
export declare class UpdatableTextComponent extends UpdatableValueComponent {
|
|
12
10
|
constructor(registryName: string, baseText: string, mode: UpdatableMode, fontSize?: number, fontColor?: string, updateCallback?: () => void);
|
|
@@ -4,10 +4,8 @@ import { UpdatableValueComponent } from "./UpdatableValueComponent";
|
|
|
4
4
|
/**
|
|
5
5
|
* Class for managing updatable text components
|
|
6
6
|
* This component is used for updating text components i.e: balance, win amount, etc.
|
|
7
|
-
*
|
|
8
|
-
* @exports
|
|
9
7
|
* @class UpdatableTextComponent
|
|
10
|
-
* @
|
|
8
|
+
* @augments {UpdatableValueComponent}
|
|
11
9
|
*/
|
|
12
10
|
export class UpdatableTextComponent extends UpdatableValueComponent {
|
|
13
11
|
constructor(registryName, baseText, mode, fontSize = RainMan.config.fontSize, fontColor, updateCallback) {
|
|
@@ -5,11 +5,9 @@ import { UpdatableMode } from "./types";
|
|
|
5
5
|
/**
|
|
6
6
|
* Abstract class for updatable text components
|
|
7
7
|
* This component is used for updating text components i.e: balance, win amount, etc.
|
|
8
|
-
*
|
|
9
|
-
* @export
|
|
10
8
|
* @abstract
|
|
11
9
|
* @class UpdatableValueComponent
|
|
12
|
-
* @
|
|
10
|
+
* @augments {Container}
|
|
13
11
|
* @implements {SpeedAdapterInterface<number>}
|
|
14
12
|
* @typedef {UpdatableValueComponent}
|
|
15
13
|
*/
|
|
@@ -8,11 +8,9 @@ import { UPDATABLE_MODES } from "./types";
|
|
|
8
8
|
/**
|
|
9
9
|
* Abstract class for updatable text components
|
|
10
10
|
* This component is used for updating text components i.e: balance, win amount, etc.
|
|
11
|
-
*
|
|
12
|
-
* @export
|
|
13
11
|
* @abstract
|
|
14
12
|
* @class UpdatableValueComponent
|
|
15
|
-
* @
|
|
13
|
+
* @augments {Container}
|
|
16
14
|
* @implements {SpeedAdapterInterface<number>}
|
|
17
15
|
* @typedef {UpdatableValueComponent}
|
|
18
16
|
*/
|
|
@@ -5,10 +5,8 @@ import { SymbolId } from "../../application";
|
|
|
5
5
|
* This class requires a message and symbol ids to display the winning line
|
|
6
6
|
* Remember to specify function getImageForSymbolId to get the image for the symbol id
|
|
7
7
|
* This default is looking for symbols with "-w" suffix
|
|
8
|
-
*
|
|
9
|
-
* @exports
|
|
10
8
|
* @class WinLineIndicator
|
|
11
|
-
* @
|
|
9
|
+
* @augments {Container}
|
|
12
10
|
*/
|
|
13
11
|
export declare class WinLineIndicator extends Container {
|
|
14
12
|
private symbolIds;
|
|
@@ -7,10 +7,8 @@ import { getTexture } from "../../utils";
|
|
|
7
7
|
* This class requires a message and symbol ids to display the winning line
|
|
8
8
|
* Remember to specify function getImageForSymbolId to get the image for the symbol id
|
|
9
9
|
* This default is looking for symbols with "-w" suffix
|
|
10
|
-
*
|
|
11
|
-
* @exports
|
|
12
10
|
* @class WinLineIndicator
|
|
13
|
-
* @
|
|
11
|
+
* @augments {Container}
|
|
14
12
|
*/
|
|
15
13
|
export class WinLineIndicator extends Container {
|
|
16
14
|
symbolIds;
|
|
@@ -2,7 +2,7 @@ import { ExtraDataRequest, GambleCardColor, GambleDataInterface, InitDataInterfa
|
|
|
2
2
|
/**
|
|
3
3
|
* Class for managing connection to the server via websockets
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
6
|
*/
|
|
7
7
|
export declare class ConnectionWrapper implements SubscribableConnectionWrapper {
|
|
8
8
|
private webSocketConnection;
|
|
@@ -13,7 +13,6 @@ export declare class ConnectionWrapper implements SubscribableConnectionWrapper
|
|
|
13
13
|
private subscribers;
|
|
14
14
|
/**
|
|
15
15
|
* Mapper function for data that comes from the server
|
|
16
|
-
*
|
|
17
16
|
* @param {ServerMessage} messageData - data obtained from the server
|
|
18
17
|
*/
|
|
19
18
|
private handleMessage;
|
|
@@ -32,7 +31,6 @@ export declare class ConnectionWrapper implements SubscribableConnectionWrapper
|
|
|
32
31
|
private transformFreeSpinData;
|
|
33
32
|
/**
|
|
34
33
|
* Method for fetching spin data from the server
|
|
35
|
-
*
|
|
36
34
|
* @param {number} roundNumber
|
|
37
35
|
* @param {number} bet
|
|
38
36
|
* @param {ExtraDataRequest} extra_data
|
|
@@ -43,7 +41,6 @@ export declare class ConnectionWrapper implements SubscribableConnectionWrapper
|
|
|
43
41
|
private getFreshWsInstance;
|
|
44
42
|
/**
|
|
45
43
|
* Method for fetching data from the server
|
|
46
|
-
*
|
|
47
44
|
* @param {ServerRequest} request
|
|
48
45
|
* @returns {ServerMessage}
|
|
49
46
|
*/
|
|
@@ -8,7 +8,7 @@ const overrideMap = new Map();
|
|
|
8
8
|
/**
|
|
9
9
|
* Class for managing connection to the server via websockets
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
*
|
|
12
12
|
*/
|
|
13
13
|
export class ConnectionWrapper {
|
|
14
14
|
webSocketConnection;
|
|
@@ -19,7 +19,6 @@ export class ConnectionWrapper {
|
|
|
19
19
|
subscribers = [];
|
|
20
20
|
/**
|
|
21
21
|
* Mapper function for data that comes from the server
|
|
22
|
-
*
|
|
23
22
|
* @param {ServerMessage} messageData - data obtained from the server
|
|
24
23
|
*/
|
|
25
24
|
handleMessage = (messageData) => {
|
|
@@ -111,7 +110,6 @@ export class ConnectionWrapper {
|
|
|
111
110
|
}
|
|
112
111
|
/**
|
|
113
112
|
* Method for fetching spin data from the server
|
|
114
|
-
*
|
|
115
113
|
* @param {number} roundNumber
|
|
116
114
|
* @param {number} bet
|
|
117
115
|
* @param {ExtraDataRequest} extra_data
|
|
@@ -151,7 +149,6 @@ export class ConnectionWrapper {
|
|
|
151
149
|
}
|
|
152
150
|
/**
|
|
153
151
|
* Method for fetching data from the server
|
|
154
|
-
*
|
|
155
152
|
* @param {ServerRequest} request
|
|
156
153
|
* @returns {ServerMessage}
|
|
157
154
|
*/
|
|
@@ -2,8 +2,7 @@ import { ServerMessage } from "./serverConnection";
|
|
|
2
2
|
/**
|
|
3
3
|
* Function to get the next response from the queue
|
|
4
4
|
* This used responses that stores in api directory
|
|
5
|
-
*
|
|
6
|
-
* @
|
|
7
|
-
* @returns {ServerMessage}
|
|
5
|
+
* @param {ServerMessage | ServerMessage[]} localResponse - response to return
|
|
6
|
+
* @returns {ServerMessage} - response from the queue
|
|
8
7
|
*/
|
|
9
8
|
export declare const apiQueue: (localResponse: ServerMessage | ServerMessage[]) => any;
|
|
@@ -3,9 +3,8 @@ let apiIndex = 0;
|
|
|
3
3
|
/**
|
|
4
4
|
* Function to get the next response from the queue
|
|
5
5
|
* This used responses that stores in api directory
|
|
6
|
-
*
|
|
7
|
-
* @
|
|
8
|
-
* @returns {ServerMessage}
|
|
6
|
+
* @param {ServerMessage | ServerMessage[]} localResponse - response to return
|
|
7
|
+
* @returns {ServerMessage} - response from the queue
|
|
9
8
|
*/
|
|
10
9
|
export const apiQueue = (localResponse) => {
|
|
11
10
|
const response = window.testingData?.apiQueue || localResponse;
|
|
@@ -4,8 +4,6 @@ import { Nullable } from "../utils";
|
|
|
4
4
|
import { TransformationDetails } from "./transformation";
|
|
5
5
|
/**
|
|
6
6
|
* This type contains basic information about win in game
|
|
7
|
-
*
|
|
8
|
-
* @export
|
|
9
7
|
* @typedef {BaseWin}
|
|
10
8
|
*/
|
|
11
9
|
export type BaseWin = {
|
|
@@ -65,8 +63,6 @@ export type CoinWin = BaseWin & {
|
|
|
65
63
|
export type Win = StreakWin | FreeSpinWin | GambleWin | MysteryWin | EggWin | GoldWin | BigWin | BonusWin | SuperBonusWin | ScatterWin | RouletteWin | JackpotWin | CoinWin | MultiWin | JokerWin;
|
|
66
64
|
/**
|
|
67
65
|
* Type represents data that come from backend
|
|
68
|
-
*
|
|
69
|
-
* @export
|
|
70
66
|
* @typedef {WinDetails}
|
|
71
67
|
*/
|
|
72
68
|
export type WinDetails = {
|
|
@@ -87,16 +83,11 @@ export type WinWithTransformation = {
|
|
|
87
83
|
};
|
|
88
84
|
/**
|
|
89
85
|
* This type represents all of the possible win types in all of Rainman games
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* @export
|
|
93
86
|
* @typedef {WinTypes}
|
|
94
87
|
*/
|
|
95
88
|
export type WinTypes = (typeof PossibleWins)[keyof typeof PossibleWins];
|
|
96
89
|
/**
|
|
97
90
|
* This type represents symbols in one row
|
|
98
|
-
*
|
|
99
|
-
* @export
|
|
100
91
|
* @typedef {SymbolReel}
|
|
101
92
|
*/
|
|
102
93
|
export type SymbolReel = SymbolId[];
|