pixi-rainman-game-engine 0.2.2 → 0.2.4
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 +1 -1
- package/dist/Rainman/types.d.ts +1 -0
- 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 +4 -5
- 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 +27 -40
- package/dist/controllers/AbstractController.js +30 -41
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseButton, ButtonStates } from "../BaseButton";
|
|
2
2
|
/**
|
|
3
3
|
* Button for handling autoplay
|
|
4
|
-
*
|
|
4
|
+
* It needs following textures:
|
|
5
5
|
* - normal - `normal/autoplay.png`
|
|
6
6
|
* - hover - `hover/autoplay.png`
|
|
7
7
|
* - clicked - `clicked/autoplay.png`
|
|
@@ -9,9 +9,8 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
9
9
|
* - mobile/clicked - `mobile/clicked/autoplay.png`
|
|
10
10
|
* - mobile/autoplay-on - `mobile/autoplay-on.png`
|
|
11
11
|
* - mobile/clicked/autoplay-on - `mobile/clicked/autoplay-on.png`
|
|
12
|
-
*
|
|
13
12
|
* @class
|
|
14
|
-
* @
|
|
13
|
+
* @augments {BaseButton}
|
|
15
14
|
*/
|
|
16
15
|
export declare class AutoplayButton extends BaseButton {
|
|
17
16
|
private mobile;
|
|
@@ -5,7 +5,7 @@ import { getTexture, getTextureSafely } from "../../../utils";
|
|
|
5
5
|
import { BaseButton, ButtonStates } from "../BaseButton";
|
|
6
6
|
/**
|
|
7
7
|
* Button for handling autoplay
|
|
8
|
-
*
|
|
8
|
+
* It needs following textures:
|
|
9
9
|
* - normal - `normal/autoplay.png`
|
|
10
10
|
* - hover - `hover/autoplay.png`
|
|
11
11
|
* - clicked - `clicked/autoplay.png`
|
|
@@ -13,9 +13,8 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
13
13
|
* - mobile/clicked - `mobile/clicked/autoplay.png`
|
|
14
14
|
* - mobile/autoplay-on - `mobile/autoplay-on.png`
|
|
15
15
|
* - mobile/clicked/autoplay-on - `mobile/clicked/autoplay-on.png`
|
|
16
|
-
*
|
|
17
16
|
* @class
|
|
18
|
-
* @
|
|
17
|
+
* @augments {BaseButton}
|
|
19
18
|
*/
|
|
20
19
|
export class AutoplayButton extends BaseButton {
|
|
21
20
|
mobile;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { BaseButton } from "../BaseButton";
|
|
2
2
|
/**
|
|
3
3
|
* Button for handling black figure in Gamble Mechanic
|
|
4
|
-
*
|
|
4
|
+
* It needs following textures:
|
|
5
5
|
* - normal - `black-n.png`
|
|
6
6
|
* - hover - `black-h.png`
|
|
7
7
|
* - clicked - `black-c.png`
|
|
8
|
-
*
|
|
9
8
|
* @class
|
|
10
9
|
*/
|
|
11
10
|
export declare class BlackButton extends BaseButton {
|
|
@@ -2,11 +2,10 @@ import { Texture } from "pixi.js";
|
|
|
2
2
|
import { BaseButton, ButtonStates } from "../BaseButton";
|
|
3
3
|
/**
|
|
4
4
|
* Button for handling black figure in Gamble Mechanic
|
|
5
|
-
*
|
|
5
|
+
* It needs following textures:
|
|
6
6
|
* - normal - `black-n.png`
|
|
7
7
|
* - hover - `black-h.png`
|
|
8
8
|
* - clicked - `black-c.png`
|
|
9
|
-
*
|
|
10
9
|
* @class
|
|
11
10
|
*/
|
|
12
11
|
export class BlackButton extends BaseButton {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { BaseButton } from "../BaseButton";
|
|
2
2
|
/**
|
|
3
3
|
* Button for collecting win in Gamble Mechanic
|
|
4
|
-
*
|
|
4
|
+
* It needs following textures:
|
|
5
5
|
* - normal - `collect-button-n.png`
|
|
6
6
|
* - hover - `collect-button-h.png`
|
|
7
7
|
* - clicked - `collect-button-c.png`
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
8
|
* @class
|
|
9
|
+
* @augments {BaseButton}
|
|
11
10
|
*/
|
|
12
11
|
export declare class CollectButton extends BaseButton {
|
|
13
12
|
static readonly registryName = "gambleCollectButton";
|
|
@@ -2,13 +2,12 @@ import { Texture } from "pixi.js";
|
|
|
2
2
|
import { BaseButton, ButtonStates } from "../BaseButton";
|
|
3
3
|
/**
|
|
4
4
|
* Button for collecting win in Gamble Mechanic
|
|
5
|
-
*
|
|
5
|
+
* It needs following textures:
|
|
6
6
|
* - normal - `collect-button-n.png`
|
|
7
7
|
* - hover - `collect-button-h.png`
|
|
8
8
|
* - clicked - `collect-button-c.png`
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
9
|
* @class
|
|
10
|
+
* @augments {BaseButton}
|
|
12
11
|
*/
|
|
13
12
|
export class CollectButton extends BaseButton {
|
|
14
13
|
static registryName = "gambleCollectButton";
|
|
@@ -7,8 +7,8 @@ import { BaseButton } from "../BaseButton";
|
|
|
7
7
|
* - clicked - `clicked/info.png`
|
|
8
8
|
* - mobile - `mobile/info.png`
|
|
9
9
|
* - mobile/clicked - `mobile/clicked/info.png`
|
|
10
|
-
*
|
|
11
10
|
* @class
|
|
11
|
+
* @augments {BaseButton}
|
|
12
12
|
*/
|
|
13
13
|
export declare class InfoButton extends BaseButton {
|
|
14
14
|
static readonly registryName = "infoButton";
|
|
@@ -8,8 +8,8 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
8
8
|
* - clicked - `clicked/info.png`
|
|
9
9
|
* - mobile - `mobile/info.png`
|
|
10
10
|
* - mobile/clicked - `mobile/clicked/info.png`
|
|
11
|
-
*
|
|
12
11
|
* @class
|
|
12
|
+
* @augments {BaseButton}
|
|
13
13
|
*/
|
|
14
14
|
export class InfoButton extends BaseButton {
|
|
15
15
|
static registryName = "infoButton";
|
|
@@ -7,8 +7,8 @@ import { BaseButton } from "../BaseButton";
|
|
|
7
7
|
* - clicked - `clicked/menu.png`
|
|
8
8
|
* - mobile - `mobile/menu.png`
|
|
9
9
|
* - mobile/clicked - `mobile/clicked/menu.png`
|
|
10
|
-
*
|
|
11
10
|
* @class
|
|
11
|
+
* @augments {BaseButton}
|
|
12
12
|
*/
|
|
13
13
|
export declare class MoreButton extends BaseButton {
|
|
14
14
|
static readonly registryName = "moreButton";
|
|
@@ -8,8 +8,8 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
8
8
|
* - clicked - `clicked/menu.png`
|
|
9
9
|
* - mobile - `mobile/menu.png`
|
|
10
10
|
* - mobile/clicked - `mobile/clicked/menu.png`
|
|
11
|
-
*
|
|
12
11
|
* @class
|
|
12
|
+
* @augments {BaseButton}
|
|
13
13
|
*/
|
|
14
14
|
export class MoreButton extends BaseButton {
|
|
15
15
|
static registryName = "moreButton";
|
|
@@ -5,8 +5,8 @@ import { BaseButton } from "../BaseButton";
|
|
|
5
5
|
* - normal - `normal/minus.png`
|
|
6
6
|
* - hover - `hover/minus.png`
|
|
7
7
|
* - clicked - `clicked/minus.png`
|
|
8
|
-
*
|
|
9
8
|
* @class
|
|
9
|
+
* @augments {BaseButton}
|
|
10
10
|
*/
|
|
11
11
|
export declare class NegButton extends BaseButton {
|
|
12
12
|
static readonly registryName = "negButton";
|
|
@@ -7,8 +7,8 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
7
7
|
* - normal - `normal/minus.png`
|
|
8
8
|
* - hover - `hover/minus.png`
|
|
9
9
|
* - clicked - `clicked/minus.png`
|
|
10
|
-
*
|
|
11
10
|
* @class
|
|
11
|
+
* @augments {BaseButton}
|
|
12
12
|
*/
|
|
13
13
|
export class NegButton extends BaseButton {
|
|
14
14
|
static registryName = "negButton";
|
|
@@ -7,8 +7,8 @@ import { BaseButton } from "../BaseButton";
|
|
|
7
7
|
* - clicked - `clicked/plus.png`
|
|
8
8
|
* - mobile - `mobile/bet.png`
|
|
9
9
|
* - mobile/clicked - `mobile/clicked/bet.png`
|
|
10
|
-
*
|
|
11
10
|
* @class
|
|
11
|
+
* @augments {BaseButton}
|
|
12
12
|
*/
|
|
13
13
|
export declare class PlusButton extends BaseButton {
|
|
14
14
|
static readonly registryName = "plusButton";
|
|
@@ -9,8 +9,8 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
9
9
|
* - clicked - `clicked/plus.png`
|
|
10
10
|
* - mobile - `mobile/bet.png`
|
|
11
11
|
* - mobile/clicked - `mobile/clicked/bet.png`
|
|
12
|
-
*
|
|
13
12
|
* @class
|
|
13
|
+
* @augments {BaseButton}
|
|
14
14
|
*/
|
|
15
15
|
export class PlusButton extends BaseButton {
|
|
16
16
|
static registryName = "plusButton";
|
|
@@ -5,8 +5,8 @@ import { BaseButton } from "../BaseButton";
|
|
|
5
5
|
* - normal - `red-n.png`
|
|
6
6
|
* - hover - `red-h.png`
|
|
7
7
|
* - clicked - `red-c.png`
|
|
8
|
-
*
|
|
9
8
|
* @class
|
|
9
|
+
* @augments {BaseButton}
|
|
10
10
|
*/
|
|
11
11
|
export declare class RedButton extends BaseButton {
|
|
12
12
|
static readonly registryName = "gambleCollectButton";
|
|
@@ -6,8 +6,8 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
6
6
|
* - normal - `red-n.png`
|
|
7
7
|
* - hover - `red-h.png`
|
|
8
8
|
* - clicked - `red-c.png`
|
|
9
|
-
*
|
|
10
9
|
* @class
|
|
10
|
+
* @augments {BaseButton}
|
|
11
11
|
*/
|
|
12
12
|
export class RedButton extends BaseButton {
|
|
13
13
|
static registryName = "gambleCollectButton";
|
|
@@ -14,8 +14,9 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
14
14
|
* Also 2 more sprites:
|
|
15
15
|
* - arrows - `normal/arrows.png`
|
|
16
16
|
* - stop - `normal/stop.png`
|
|
17
|
-
*
|
|
18
17
|
* @class
|
|
18
|
+
* @augments {BaseButton}
|
|
19
|
+
* @implements {IncentiveComponent}
|
|
19
20
|
*/
|
|
20
21
|
export declare class RefreshButton extends BaseButton implements IncentiveComponent {
|
|
21
22
|
static readonly registryName = "refreshButton";
|
|
@@ -17,8 +17,9 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
17
17
|
* Also 2 more sprites:
|
|
18
18
|
* - arrows - `normal/arrows.png`
|
|
19
19
|
* - stop - `normal/stop.png`
|
|
20
|
-
*
|
|
21
20
|
* @class
|
|
21
|
+
* @augments {BaseButton}
|
|
22
|
+
* @implements {IncentiveComponent}
|
|
22
23
|
*/
|
|
23
24
|
export class RefreshButton extends BaseButton {
|
|
24
25
|
static registryName = "refreshButton";
|
|
@@ -6,7 +6,6 @@ import { BaseButton, TextureMap } from "../BaseButton";
|
|
|
6
6
|
* - turtle - `speed-turtle.png`
|
|
7
7
|
* - rabbit - `speed-rabbit.png`
|
|
8
8
|
* - cheetah - `speed-cheetah.png`
|
|
9
|
-
*
|
|
10
9
|
* @class
|
|
11
10
|
*/
|
|
12
11
|
export declare class SpeedControlButton extends BaseButton implements SpeedAdapterInterface<TextureMap> {
|
|
@@ -15,6 +14,7 @@ export declare class SpeedControlButton extends BaseButton implements SpeedAdapt
|
|
|
15
14
|
constructor();
|
|
16
15
|
/**
|
|
17
16
|
* Change button's texture according to speed level
|
|
17
|
+
* @param {SpeedLevel} speedLevel - new speed level
|
|
18
18
|
*/
|
|
19
19
|
adaptToSpeed(speedLevel: SpeedLevel): void;
|
|
20
20
|
}
|
|
@@ -13,7 +13,6 @@ const createTextureMap = (speedLevel) => {
|
|
|
13
13
|
* - turtle - `speed-turtle.png`
|
|
14
14
|
* - rabbit - `speed-rabbit.png`
|
|
15
15
|
* - cheetah - `speed-cheetah.png`
|
|
16
|
-
*
|
|
17
16
|
* @class
|
|
18
17
|
*/
|
|
19
18
|
export class SpeedControlButton extends BaseButton {
|
|
@@ -29,6 +28,7 @@ export class SpeedControlButton extends BaseButton {
|
|
|
29
28
|
}
|
|
30
29
|
/**
|
|
31
30
|
* Change button's texture according to speed level
|
|
31
|
+
* @param {SpeedLevel} speedLevel - new speed level
|
|
32
32
|
*/
|
|
33
33
|
adaptToSpeed(speedLevel) {
|
|
34
34
|
this.setTextureMap(this.speedLevelMapper[speedLevel]);
|
|
@@ -5,6 +5,7 @@ import { BaseButton } from "../BaseButton";
|
|
|
5
5
|
* - normal - `freeSpin_confirm_normal.png`
|
|
6
6
|
* - hover - `freeSpin_confirm_hover.png`
|
|
7
7
|
* - clicked - `freeSpin_confirm_clicked.png`
|
|
8
|
+
* @augments {BaseButton}
|
|
8
9
|
*/
|
|
9
10
|
export declare class SpinConfirmationButton extends BaseButton {
|
|
10
11
|
static registryName: string;
|
|
@@ -6,6 +6,7 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
6
6
|
* - normal - `freeSpin_confirm_normal.png`
|
|
7
7
|
* - hover - `freeSpin_confirm_hover.png`
|
|
8
8
|
* - clicked - `freeSpin_confirm_clicked.png`
|
|
9
|
+
* @augments {BaseButton}
|
|
9
10
|
*/
|
|
10
11
|
export class SpinConfirmationButton extends BaseButton {
|
|
11
12
|
static registryName = "spinConfirmationButton";
|
|
@@ -8,8 +8,8 @@ import { BaseButton } from "../BaseButton";
|
|
|
8
8
|
* - mute - `mute.png`
|
|
9
9
|
* - mute-h - `mute-h.png`
|
|
10
10
|
* - mute-c - `mute-c.png`
|
|
11
|
-
*
|
|
12
11
|
* @class
|
|
12
|
+
* @augments {BaseButton}
|
|
13
13
|
*/
|
|
14
14
|
export declare class VolumeButton extends BaseButton {
|
|
15
15
|
static readonly registryName = "volumeButton";
|
|
@@ -10,8 +10,8 @@ import { BaseButton, ButtonStates } from "../BaseButton";
|
|
|
10
10
|
* - mute - `mute.png`
|
|
11
11
|
* - mute-h - `mute-h.png`
|
|
12
12
|
* - mute-c - `mute-c.png`
|
|
13
|
-
*
|
|
14
13
|
* @class
|
|
14
|
+
* @augments {BaseButton}
|
|
15
15
|
*/
|
|
16
16
|
export class VolumeButton extends BaseButton {
|
|
17
17
|
static registryName = "volumeButton";
|
|
@@ -3,11 +3,9 @@ import { ResumableContainer } from "./ResumableContainers";
|
|
|
3
3
|
/**
|
|
4
4
|
* Every game have animated background with animation
|
|
5
5
|
* This class represents the animated background that have every game
|
|
6
|
-
*
|
|
7
|
-
* @export
|
|
8
6
|
* @class AnimatedBackground
|
|
9
7
|
* @typedef {AnimatedBackground}
|
|
10
|
-
* @
|
|
8
|
+
* @augments {ResumableContainer}
|
|
11
9
|
*/
|
|
12
10
|
export declare class AnimatedBackground extends ResumableContainer {
|
|
13
11
|
private desktopSpineName;
|
|
@@ -21,7 +19,6 @@ export declare class AnimatedBackground extends ResumableContainer {
|
|
|
21
19
|
* This method is called when free spins are triggered
|
|
22
20
|
* It is used to change the background animation
|
|
23
21
|
* Remember to change resize for this method
|
|
24
|
-
*
|
|
25
22
|
* @protected
|
|
26
23
|
*/
|
|
27
24
|
protected changeForFreeSpins(): void;
|
|
@@ -29,7 +26,6 @@ export declare class AnimatedBackground extends ResumableContainer {
|
|
|
29
26
|
* This method is called when base game is triggered
|
|
30
27
|
* It is used to change the background animation
|
|
31
28
|
* Remember to change resize for this method
|
|
32
|
-
*
|
|
33
29
|
* @protected
|
|
34
30
|
*/
|
|
35
31
|
protected changeForBaseGame(): void;
|
|
@@ -6,11 +6,9 @@ import { ResumableContainer } from "./ResumableContainers";
|
|
|
6
6
|
/**
|
|
7
7
|
* Every game have animated background with animation
|
|
8
8
|
* This class represents the animated background that have every game
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
11
9
|
* @class AnimatedBackground
|
|
12
10
|
* @typedef {AnimatedBackground}
|
|
13
|
-
* @
|
|
11
|
+
* @augments {ResumableContainer}
|
|
14
12
|
*/
|
|
15
13
|
export class AnimatedBackground extends ResumableContainer {
|
|
16
14
|
desktopSpineName;
|
|
@@ -37,7 +35,6 @@ export class AnimatedBackground extends ResumableContainer {
|
|
|
37
35
|
* This method is called when free spins are triggered
|
|
38
36
|
* It is used to change the background animation
|
|
39
37
|
* Remember to change resize for this method
|
|
40
|
-
*
|
|
41
38
|
* @protected
|
|
42
39
|
*/
|
|
43
40
|
changeForFreeSpins() { }
|
|
@@ -45,7 +42,6 @@ export class AnimatedBackground extends ResumableContainer {
|
|
|
45
42
|
* This method is called when base game is triggered
|
|
46
43
|
* It is used to change the background animation
|
|
47
44
|
* Remember to change resize for this method
|
|
48
|
-
*
|
|
49
45
|
* @protected
|
|
50
46
|
*/
|
|
51
47
|
changeForBaseGame() { }
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { Sprite } from "pixi.js";
|
|
2
2
|
/**
|
|
3
3
|
* This class represents background image while loading game
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @export
|
|
4
|
+
* - backgroundDesktop - name of desktop background png
|
|
5
|
+
* - backgroundMobile - name of mobile background png
|
|
8
6
|
* @class Background
|
|
9
7
|
* @typedef {Background}
|
|
10
|
-
* @
|
|
8
|
+
* @augments {Sprite}
|
|
11
9
|
*/
|
|
12
10
|
export declare class Background extends Sprite {
|
|
13
11
|
private backgroundDesktop;
|
|
@@ -4,13 +4,11 @@ import { RainMan } from "../../Rainman";
|
|
|
4
4
|
import { getDeviceOrientation, getTexture } from "../../utils";
|
|
5
5
|
/**
|
|
6
6
|
* This class represents background image while loading game
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @export
|
|
7
|
+
* - backgroundDesktop - name of desktop background png
|
|
8
|
+
* - backgroundMobile - name of mobile background png
|
|
11
9
|
* @class Background
|
|
12
10
|
* @typedef {Background}
|
|
13
|
-
* @
|
|
11
|
+
* @augments {Sprite}
|
|
14
12
|
*/
|
|
15
13
|
export class Background extends Sprite {
|
|
16
14
|
backgroundDesktop;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { ResumableContainer } from "./ResumableContainers";
|
|
2
2
|
/**
|
|
3
3
|
* This class represents button/box with ability to buy free games
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
4
|
* @class FreeSpinButton
|
|
7
5
|
* @typedef {FreeSpinButton}
|
|
8
|
-
* @
|
|
6
|
+
* @augments {ResumableContainer}
|
|
9
7
|
*/
|
|
10
8
|
export declare class FreeSpinButton extends ResumableContainer {
|
|
11
9
|
private spineName;
|
|
@@ -7,11 +7,9 @@ import { getDeviceOrientation, getSpineData } from "../../utils";
|
|
|
7
7
|
import { ResumableContainer } from "./ResumableContainers";
|
|
8
8
|
/**
|
|
9
9
|
* This class represents button/box with ability to buy free games
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
12
10
|
* @class FreeSpinButton
|
|
13
11
|
* @typedef {FreeSpinButton}
|
|
14
|
-
* @
|
|
12
|
+
* @augments {ResumableContainer}
|
|
15
13
|
*/
|
|
16
14
|
export class FreeSpinButton extends ResumableContainer {
|
|
17
15
|
spineName;
|
|
@@ -2,11 +2,9 @@ import { Spine } from "pixi-spine";
|
|
|
2
2
|
import { ResumableContainer } from "./ResumableContainers";
|
|
3
3
|
/**
|
|
4
4
|
* This logo is animated logo that will display after loading the game
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
5
|
* @class Logo
|
|
8
6
|
* @typedef {Logo}
|
|
9
|
-
* @
|
|
7
|
+
* @augments {ResumableContainer}
|
|
10
8
|
*/
|
|
11
9
|
export declare class Logo extends ResumableContainer {
|
|
12
10
|
private desktopSpineName;
|
|
@@ -5,11 +5,9 @@ import { getDeviceOrientation, getSpineData, globalMinRatio } from "../../utils"
|
|
|
5
5
|
import { ResumableContainer } from "./ResumableContainers";
|
|
6
6
|
/**
|
|
7
7
|
* This logo is animated logo that will display after loading the game
|
|
8
|
-
*
|
|
9
|
-
* @export
|
|
10
8
|
* @class Logo
|
|
11
9
|
* @typedef {Logo}
|
|
12
|
-
* @
|
|
10
|
+
* @augments {ResumableContainer}
|
|
13
11
|
*/
|
|
14
12
|
export class Logo extends ResumableContainer {
|
|
15
13
|
desktopSpineName;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Sprite } from "pixi.js";
|
|
2
2
|
/**
|
|
3
3
|
* This class is used to display game logo at LoadingScreen
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
4
|
* @class LogoStatic
|
|
7
5
|
* @typedef {LogoStatic}
|
|
8
|
-
* @
|
|
6
|
+
* @augments {Sprite}
|
|
9
7
|
*/
|
|
10
8
|
export declare class LogoStatic extends Sprite {
|
|
11
9
|
private maxScale;
|
|
@@ -3,11 +3,9 @@ import { RainMan } from "../../Rainman";
|
|
|
3
3
|
import { getTexture, globalMinRatio } from "../../utils";
|
|
4
4
|
/**
|
|
5
5
|
* This class is used to display game logo at LoadingScreen
|
|
6
|
-
*
|
|
7
|
-
* @export
|
|
8
6
|
* @class LogoStatic
|
|
9
7
|
* @typedef {LogoStatic}
|
|
10
|
-
* @
|
|
8
|
+
* @augments {Sprite}
|
|
11
9
|
*/
|
|
12
10
|
export class LogoStatic extends Sprite {
|
|
13
11
|
maxScale;
|
|
@@ -2,40 +2,40 @@ import { Container, Sprite } from "pixi.js";
|
|
|
2
2
|
import { Spine } from "pixi-spine";
|
|
3
3
|
/**
|
|
4
4
|
* Class representing container with all spines. Every used spine have to be put in `allSpines` array to enable battery saver functionality
|
|
5
|
-
*
|
|
6
|
-
* @extends {Spine}
|
|
5
|
+
* @augments {Spine}
|
|
7
6
|
* @class
|
|
8
7
|
*/
|
|
9
8
|
export declare abstract class SpineWithResumableContainer extends Spine {
|
|
10
9
|
protected allSpines: Spine[];
|
|
11
10
|
/**
|
|
12
11
|
* Sets animation timescale for all spines
|
|
12
|
+
* @param {boolean} flag - flag to set timescale
|
|
13
13
|
*/
|
|
14
14
|
setAnimationTimescale(flag: boolean): void;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Class representing container with all spines array
|
|
18
|
-
*
|
|
19
|
-
* @extends {Container}
|
|
18
|
+
* @augments {Container}
|
|
20
19
|
* @class
|
|
21
20
|
*/
|
|
22
21
|
export declare abstract class ResumableContainer extends Container {
|
|
23
22
|
protected allSpines: Spine[];
|
|
24
23
|
/**
|
|
25
24
|
* Sets animation timescale for all spines
|
|
25
|
+
* @param {boolean} flag - flag to set timescale
|
|
26
26
|
*/
|
|
27
27
|
setAnimationTimescale(flag: boolean): void;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Class representing container with all spines array
|
|
31
|
-
*
|
|
32
|
-
* @extends {Sprite}
|
|
31
|
+
* @augments {Sprite}
|
|
33
32
|
* @class
|
|
34
33
|
*/
|
|
35
34
|
export declare abstract class SpriteWithResumableContainer extends Sprite {
|
|
36
35
|
protected allSpines: Spine[];
|
|
37
36
|
/**
|
|
38
37
|
* Sets animation timescale for all spines
|
|
38
|
+
* @param {boolean} flag - flag to set timescale
|
|
39
39
|
*/
|
|
40
40
|
setAnimationTimescale(flag: boolean): void;
|
|
41
41
|
}
|
|
@@ -3,14 +3,14 @@ import { Spine } from "pixi-spine";
|
|
|
3
3
|
import { setTimeScale } from "../../utils";
|
|
4
4
|
/**
|
|
5
5
|
* Class representing container with all spines. Every used spine have to be put in `allSpines` array to enable battery saver functionality
|
|
6
|
-
*
|
|
7
|
-
* @extends {Spine}
|
|
6
|
+
* @augments {Spine}
|
|
8
7
|
* @class
|
|
9
8
|
*/
|
|
10
9
|
export class SpineWithResumableContainer extends Spine {
|
|
11
10
|
allSpines = [];
|
|
12
11
|
/**
|
|
13
12
|
* Sets animation timescale for all spines
|
|
13
|
+
* @param {boolean} flag - flag to set timescale
|
|
14
14
|
*/
|
|
15
15
|
setAnimationTimescale(flag) {
|
|
16
16
|
this.allSpines.forEach((spine) => setTimeScale(spine, flag));
|
|
@@ -18,14 +18,14 @@ export class SpineWithResumableContainer extends Spine {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Class representing container with all spines array
|
|
21
|
-
*
|
|
22
|
-
* @extends {Container}
|
|
21
|
+
* @augments {Container}
|
|
23
22
|
* @class
|
|
24
23
|
*/
|
|
25
24
|
export class ResumableContainer extends Container {
|
|
26
25
|
allSpines = [];
|
|
27
26
|
/**
|
|
28
27
|
* Sets animation timescale for all spines
|
|
28
|
+
* @param {boolean} flag - flag to set timescale
|
|
29
29
|
*/
|
|
30
30
|
setAnimationTimescale(flag) {
|
|
31
31
|
this.allSpines.forEach((spine) => setTimeScale(spine, flag));
|
|
@@ -33,14 +33,14 @@ export class ResumableContainer extends Container {
|
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Class representing container with all spines array
|
|
36
|
-
*
|
|
37
|
-
* @extends {Sprite}
|
|
36
|
+
* @augments {Sprite}
|
|
38
37
|
* @class
|
|
39
38
|
*/
|
|
40
39
|
export class SpriteWithResumableContainer extends Sprite {
|
|
41
40
|
allSpines = [];
|
|
42
41
|
/**
|
|
43
42
|
* Sets animation timescale for all spines
|
|
43
|
+
* @param {boolean} flag - flag to set timescale
|
|
44
44
|
*/
|
|
45
45
|
setAnimationTimescale(flag) {
|
|
46
46
|
this.allSpines.forEach((spine) => setTimeScale(spine, flag));
|
|
@@ -5,12 +5,10 @@ import { PlayableAction } from "../../utils";
|
|
|
5
5
|
import { AbstractSymbolsColumn } from "../symbols";
|
|
6
6
|
/**
|
|
7
7
|
* Class represents columns container in game
|
|
8
|
-
*
|
|
9
|
-
* @export
|
|
10
8
|
* @abstract
|
|
11
9
|
* @class AbstractColumnsContainer
|
|
12
10
|
* @typedef {AbstractColumnsContainer}
|
|
13
|
-
* @
|
|
11
|
+
* @augments {Container}
|
|
14
12
|
* @implements {SpeedAdapterInterface<number>}
|
|
15
13
|
*/
|
|
16
14
|
export declare abstract class AbstractColumnsContainer extends Container implements SpeedAdapterInterface<number> {
|
|
@@ -40,9 +38,7 @@ export declare abstract class AbstractColumnsContainer extends Container impleme
|
|
|
40
38
|
blindSpin(): void;
|
|
41
39
|
/**
|
|
42
40
|
* This function is responsible for setting symbols in columns
|
|
43
|
-
*
|
|
44
41
|
* @public
|
|
45
|
-
* @async
|
|
46
42
|
* @param {SymbolReels} finalSymbolReels
|
|
47
43
|
* @param {(value: void | PromiseLike<void>) => void} afterSpinResolver
|
|
48
44
|
* @param {number[]} indexesOfReelsToExtendSpinningTime
|
|
@@ -55,13 +51,11 @@ export declare abstract class AbstractColumnsContainer extends Container impleme
|
|
|
55
51
|
protected playStreakSound(symbols: SymbolId[]): void;
|
|
56
52
|
/**
|
|
57
53
|
* Function for playing animation of streak
|
|
58
|
-
*
|
|
59
54
|
* @public
|
|
60
|
-
* @async
|
|
61
55
|
* @param {StreakReelsIndexes} streak
|
|
62
56
|
* @param {number} reelsQuantity
|
|
63
|
-
* @param {number} [multiplier
|
|
64
|
-
* @param {string} [suffix
|
|
57
|
+
* @param {number} [multiplier]
|
|
58
|
+
* @param {string} [suffix]
|
|
65
59
|
* @returns {Promise<void>}
|
|
66
60
|
*/
|
|
67
61
|
playStreak(streak: StreakReelsIndexes, reelsQuantity: number, multiplier?: number, suffix?: string): Promise<void>;
|