pixi-rainman-game-engine 0.0.4 → 0.0.6
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/LICENSE +1 -0
- package/README.md +7 -2
- package/dist/ComponentRegistry/ComponentRegistry.d.ts +24 -0
- package/dist/ComponentRegistry/ComponentRegistry.js +101 -0
- package/dist/ComponentRegistry/index.d.ts +2 -0
- package/dist/ComponentRegistry/index.js +2 -0
- package/dist/ComponentRegistry/types.d.ts +25 -0
- package/dist/ComponentRegistry/types.js +1 -0
- package/dist/DescribedPlayableAction/DescribedPlayableAction.d.ts +8 -0
- package/dist/DescribedPlayableAction/DescribedPlayableAction.js +11 -0
- package/dist/DescribedPlayableAction/index.d.ts +1 -0
- package/dist/DescribedPlayableAction/index.js +1 -0
- package/dist/Money/MoneyText.d.ts +5 -0
- package/dist/Money/MoneyText.js +11 -0
- package/dist/Money/index.d.ts +1 -0
- package/dist/Money/index.js +1 -0
- package/dist/Rainman/Rainman.d.ts +16 -0
- package/dist/Rainman/Rainman.js +23 -0
- package/dist/Rainman/appConfig.d.ts +2 -0
- package/dist/Rainman/appConfig.js +41 -0
- package/dist/Rainman/index.d.ts +3 -0
- package/dist/Rainman/index.js +3 -0
- package/dist/Rainman/types.d.ts +50 -0
- package/dist/application/ApiConfig/ApiConfig.d.ts +22 -0
- package/dist/application/ApiConfig/ApiConfig.js +93 -0
- package/dist/application/ApiConfig/SymbolId.d.ts +3 -0
- package/dist/application/ApiConfig/TransformationTypesId.d.ts +3 -0
- package/dist/application/ApiConfig/TransformationTypesId.js +1 -0
- package/dist/application/ApiConfig/WinTypeId.d.ts +3 -0
- package/dist/application/ApiConfig/WinTypeId.js +1 -0
- package/dist/application/ApiConfig/index.d.ts +3 -0
- package/dist/application/ApiConfig/index.js +3 -0
- package/dist/application/ButtonsEventManager/ButtonsEventManager.d.ts +30 -0
- package/dist/application/ButtonsEventManager/ButtonsEventManager.js +209 -0
- package/dist/application/ButtonsEventManager/index.d.ts +1 -0
- package/dist/application/ButtonsEventManager/index.js +1 -0
- package/dist/application/SoundManager/SoundManager.d.ts +20 -0
- package/dist/application/SoundManager/SoundManager.js +75 -0
- package/dist/application/SoundManager/index.d.ts +2 -0
- package/dist/application/SoundManager/index.js +2 -0
- package/dist/application/SoundManager/types.d.ts +22 -0
- package/dist/application/SoundManager/types.js +21 -0
- package/dist/application/SpeedState/SpeedAdapter.d.ts +6 -0
- package/dist/application/SpeedState/SpeedAdapter.js +8 -0
- package/dist/application/SpeedState/SpeedLevel.d.ts +15 -0
- package/dist/application/SpeedState/SpeedLevel.js +21 -0
- package/dist/application/SpeedState/SpeedLevelHandler.d.ts +12 -0
- package/dist/application/SpeedState/SpeedLevelHandler.js +43 -0
- package/dist/application/SpeedState/index.d.ts +3 -0
- package/dist/application/SpeedState/index.js +3 -0
- package/dist/application/SpinLogic/SpinLogic.d.ts +19 -0
- package/dist/application/SpinLogic/SpinLogic.js +38 -0
- package/dist/application/SpinLogic/SpinLogicDTO.d.ts +18 -0
- package/dist/application/SpinLogic/SpinLogicDTO.js +74 -0
- package/dist/application/SpinLogic/WinScenarios.d.ts +8 -0
- package/dist/application/SpinLogic/WinScenarios.js +14 -0
- package/dist/application/SpinLogic/index.d.ts +5 -0
- package/dist/application/SpinLogic/index.js +5 -0
- package/dist/application/SpinLogic/types.d.ts +13 -0
- package/dist/application/SpinLogic/types.js +1 -0
- package/dist/application/SpinLogic/util.d.ts +6 -0
- package/dist/application/SpinLogic/util.js +83 -0
- package/dist/application/TimedActions/IncentiveComponent.d.ts +6 -0
- package/dist/application/TimedActions/IncentiveComponent.js +9 -0
- package/dist/application/TimedActions/TimedIncentiveController.d.ts +14 -0
- package/dist/application/TimedActions/TimedIncentiveController.js +50 -0
- package/dist/application/TimedActions/index.d.ts +2 -0
- package/dist/application/TimedActions/index.js +2 -0
- package/dist/application/index.d.ts +6 -0
- package/dist/application/index.js +6 -0
- package/dist/components/AbstractFreeSpinContainer/AbstractFreeSpinContainer.d.ts +14 -0
- package/dist/components/AbstractFreeSpinContainer/AbstractFreeSpinContainer.js +28 -0
- package/dist/components/AbstractMainContainer/AbstractMainContainer.d.ts +68 -0
- package/dist/components/AbstractMainContainer/AbstractMainContainer.js +270 -0
- package/dist/components/AbstractMainContainer/index.d.ts +1 -0
- package/dist/components/AbstractMainContainer/index.js +1 -0
- package/dist/components/buttons/AutoplayButton/AutoplayButton.d.ts +6 -0
- package/dist/components/buttons/AutoplayButton/AutoplayButton.js +21 -0
- package/dist/components/buttons/AutoplayButton/index.d.ts +1 -0
- package/dist/components/buttons/AutoplayButton/index.js +1 -0
- package/dist/{buttons → components/buttons}/BaseButton/BaseButton.d.ts +7 -4
- package/dist/{buttons → components/buttons}/BaseButton/BaseButton.js +29 -23
- package/dist/components/buttons/BaseButton/ButtonState.d.ts +8 -0
- package/dist/components/buttons/BaseButton/ButtonState.js +8 -0
- package/dist/components/buttons/BaseButton/index.d.ts +3 -0
- package/dist/components/buttons/BaseButton/index.js +3 -0
- package/dist/{buttons → components/buttons}/BaseButton/types.d.ts +1 -1
- package/dist/components/buttons/BaseButton/types.js +1 -0
- package/dist/components/buttons/FreeSpinBox/FreeSpinBox.d.ts +8 -0
- package/dist/components/buttons/FreeSpinBox/FreeSpinBox.js +31 -0
- package/dist/components/buttons/FreeSpinBox/index.d.ts +1 -0
- package/dist/components/buttons/FreeSpinBox/index.js +1 -0
- package/dist/components/buttons/SpeedControlButton/SpeedControlButton.d.ts +8 -0
- package/dist/components/buttons/SpeedControlButton/SpeedControlButton.js +16 -0
- package/dist/components/buttons/SpeedControlButton/index.d.ts +1 -0
- package/dist/components/buttons/SpeedControlButton/index.js +1 -0
- package/dist/components/buttons/VolumeButton/VolumeButton.d.ts +8 -0
- package/dist/components/buttons/VolumeButton/VolumeButton.js +23 -0
- package/dist/components/buttons/VolumeButton/index.d.ts +1 -0
- package/dist/components/buttons/VolumeButton/index.js +1 -0
- package/dist/components/buttons/buttonGroups/AbstractLeftButtons.d.ts +13 -0
- package/dist/components/buttons/buttonGroups/AbstractLeftButtons.js +18 -0
- package/dist/components/buttons/buttonGroups/AbstractLeftButtonsLandscape.d.ts +8 -0
- package/dist/components/buttons/buttonGroups/AbstractLeftButtonsLandscape.js +12 -0
- package/dist/components/buttons/buttonGroups/AbstractLeftButtonsMobile.d.ts +11 -0
- package/dist/components/buttons/buttonGroups/AbstractLeftButtonsMobile.js +12 -0
- package/dist/components/buttons/buttonGroups/AbstractMiddleButtons.d.ts +12 -0
- package/dist/components/buttons/buttonGroups/AbstractMiddleButtons.js +17 -0
- package/dist/components/buttons/buttonGroups/AbstractRightButtons.d.ts +14 -0
- package/dist/components/buttons/buttonGroups/AbstractRightButtons.js +19 -0
- package/dist/components/buttons/buttonGroups/AbstractRightButtonsLandscape.d.ts +13 -0
- package/dist/components/buttons/buttonGroups/AbstractRightButtonsLandscape.js +18 -0
- package/dist/components/buttons/buttonGroups/AbstractRightButtonsMobile.d.ts +12 -0
- package/dist/components/buttons/buttonGroups/AbstractRightButtonsMobile.js +12 -0
- package/dist/components/buttons/buttonGroups/index.d.ts +7 -0
- package/dist/components/buttons/buttonGroups/index.js +7 -0
- package/dist/components/buttons/index.d.ts +7 -0
- package/dist/components/buttons/index.js +7 -0
- package/dist/components/buttons/registrynames.d.ts +19 -0
- package/dist/components/buttons/registrynames.js +19 -0
- package/dist/components/common/Background.d.ts +12 -0
- package/dist/components/common/Background.js +40 -0
- package/dist/components/common/Logo.d.ts +8 -0
- package/dist/components/common/Logo.js +33 -0
- package/dist/components/common/ResponsiveComponent.d.ts +8 -0
- package/dist/components/common/ResponsiveComponent.js +15 -0
- package/dist/components/common/ResumableContainers.d.ts +10 -0
- package/dist/components/common/ResumableContainers.js +15 -0
- package/dist/components/common/ScalableSpine.d.ts +5 -0
- package/dist/components/common/ScalableSpine.js +17 -0
- package/dist/components/common/index.d.ts +5 -0
- package/dist/components/common/index.js +5 -0
- package/dist/components/dictionary/i18n.d.ts +1 -0
- package/dist/components/dictionary/i18n.js +11 -0
- package/dist/components/dictionary/index.d.ts +1 -0
- package/dist/components/dictionary/index.js +1 -0
- package/dist/components/dictionary/locales/en.json +27 -0
- package/dist/components/dictionary/locales/index.d.ts +2 -0
- package/dist/components/dictionary/locales/index.js +2 -0
- package/dist/components/frame/AbstractColumnsContainer.d.ts +40 -0
- package/dist/components/frame/AbstractColumnsContainer.js +169 -0
- package/dist/components/frame/AbstractFrame.d.ts +36 -0
- package/dist/components/frame/AbstractFrame.js +85 -0
- package/dist/components/frame/AbstractInnerFrame.d.ts +8 -0
- package/dist/components/frame/AbstractInnerFrame.js +13 -0
- package/dist/components/frame/WinLineAnimation.d.ts +7 -0
- package/dist/components/frame/WinLineAnimation.js +22 -0
- package/dist/components/frame/index.d.ts +4 -0
- package/dist/components/frame/index.js +4 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +9 -0
- package/dist/components/messageBox/MessageBox.d.ts +32 -0
- package/dist/components/messageBox/MessageBox.js +132 -0
- package/dist/components/messageBox/index.d.ts +1 -0
- package/dist/components/messageBox/index.js +1 -0
- package/dist/components/symbols/AbstractSymbolBase.d.ts +31 -0
- package/dist/components/symbols/AbstractSymbolBase.js +150 -0
- package/dist/components/symbols/AbstractSymbolsColumn.d.ts +73 -0
- package/dist/components/symbols/AbstractSymbolsColumn.js +443 -0
- package/dist/components/symbols/DroppableSymbol.d.ts +13 -0
- package/dist/components/symbols/DroppableSymbol.js +21 -0
- package/dist/components/symbols/DroppableSymbolsColumn.d.ts +21 -0
- package/dist/components/symbols/DroppableSymbolsColumn.js +90 -0
- package/dist/components/symbols/index.d.ts +5 -0
- package/dist/components/symbols/index.js +5 -0
- package/dist/components/symbols/types.d.ts +19 -0
- package/dist/components/symbols/types.js +13 -0
- package/dist/components/updatable/StylefulUpdatableText.d.ts +10 -0
- package/dist/components/updatable/StylefulUpdatableText.js +33 -0
- package/dist/components/updatable/UpdatableTextComponent.d.ts +5 -0
- package/dist/components/updatable/UpdatableTextComponent.js +13 -0
- package/dist/components/updatable/UpdatableValueComponent.d.ts +28 -0
- package/dist/components/updatable/UpdatableValueComponent.js +118 -0
- package/dist/components/updatable/index.d.ts +4 -0
- package/dist/components/updatable/index.js +4 -0
- package/dist/components/updatable/types.d.ts +5 -0
- package/dist/components/updatable/types.js +4 -0
- package/dist/components/winLineIndicator/WinLineIndicator.d.ts +11 -0
- package/dist/components/winLineIndicator/WinLineIndicator.js +34 -0
- package/dist/components/winLineIndicator/index.d.ts +1 -0
- package/dist/components/winLineIndicator/index.js +1 -0
- package/dist/connectivity/ConnectionWrapper.d.ts +20 -0
- package/dist/connectivity/ConnectionWrapper.js +116 -0
- package/dist/connectivity/LocalConnectionWrapper.d.ts +16 -0
- package/dist/connectivity/LocalConnectionWrapper.js +36 -0
- package/dist/connectivity/apiQueue.d.ts +2 -0
- package/dist/connectivity/apiQueue.js +12 -0
- package/dist/connectivity/index.d.ts +7 -0
- package/dist/connectivity/index.js +7 -0
- package/dist/connectivity/serverConnection.d.ts +44 -0
- package/dist/connectivity/serverConnection.js +1 -0
- package/dist/connectivity/serverData.d.ts +76 -0
- package/dist/connectivity/serverData.js +1 -0
- package/dist/connectivity/spinData.d.ts +10 -0
- package/dist/connectivity/spinData.js +24 -0
- package/dist/connectivity/transformation.d.ts +16 -0
- package/dist/connectivity/transformation.js +1 -0
- package/dist/connectivity/wins.d.ts +67 -0
- package/dist/connectivity/wins.js +1 -0
- package/dist/constants/colors.d.ts +2 -0
- package/dist/constants/colors.js +5 -0
- package/dist/constants/gamePhase.d.ts +15 -0
- package/dist/constants/gamePhase.js +14 -0
- package/dist/constants/index.d.ts +5 -2
- package/dist/constants/index.js +5 -3
- package/dist/constants/paytableTypes.d.ts +4 -0
- package/dist/constants/paytableTypes.js +4 -0
- package/dist/constants/transformation.d.ts +10 -0
- package/dist/constants/transformation.js +10 -0
- package/dist/constants/wins.d.ts +11 -0
- package/dist/constants/wins.js +11 -0
- package/dist/controllers/AbstractController.d.ts +81 -0
- package/dist/controllers/AbstractController.js +616 -0
- package/dist/controllers/QuickStopController.d.ts +12 -0
- package/dist/controllers/QuickStopController.js +36 -0
- package/dist/controllers/UiController.d.ts +42 -0
- package/dist/controllers/UiController.js +144 -0
- package/dist/controllers/index.d.ts +4 -0
- package/dist/controllers/index.js +4 -0
- package/dist/controllers/types.d.ts +7 -0
- package/dist/controllers/types.js +1 -0
- package/dist/errors/LanguageNotDefinedError.d.ts +3 -0
- package/dist/errors/LanguageNotDefinedError.js +5 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +1 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.js +11 -2
- package/dist/layers/index.d.ts +1 -0
- package/dist/layers/index.js +1 -0
- package/dist/layers/layers.d.ts +5 -0
- package/dist/layers/layers.js +9 -0
- package/dist/loading/LoadingContainer.d.ts +10 -0
- package/dist/loading/LoadingContainer.js +34 -0
- package/dist/loading/SpriteLoadingContainer.d.ts +2 -4
- package/dist/loading/SpriteLoadingContainer.js +6 -8
- package/dist/localStorage/index.d.ts +1 -0
- package/dist/localStorage/index.js +1 -0
- package/dist/localStorage/localStorage.d.ts +9 -0
- package/dist/localStorage/localStorage.js +13 -0
- package/dist/stores/SettingsStore.d.ts +75 -0
- package/dist/stores/SettingsStore.js +260 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/index.js +1 -0
- package/dist/stores/types.d.ts +7 -0
- package/dist/stores/types.js +1 -0
- package/dist/utils/common/deviceOrientation.js +1 -1
- package/dist/utils/common/functions.d.ts +11 -4
- package/dist/utils/common/functions.js +64 -39
- package/dist/utils/common/index.d.ts +5 -0
- package/dist/utils/common/index.js +5 -0
- package/dist/utils/common/logger.d.ts +7 -0
- package/dist/utils/common/logger.js +30 -0
- package/dist/utils/common/placementHelpers.d.ts +5 -0
- package/dist/utils/common/placementHelpers.js +37 -0
- package/dist/utils/common/screenHelpers.d.ts +5 -0
- package/dist/utils/common/screenHelpers.js +60 -0
- package/dist/utils/common/stats.d.ts +3 -0
- package/dist/utils/common/stats.js +16 -0
- package/dist/utils/common/types.d.ts +3 -0
- package/dist/utils/common/uiItems.d.ts +11 -0
- package/dist/utils/common/uiItems.js +11 -0
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/winComponents/AnimableParticlesEmitter.d.ts +9 -0
- package/dist/winComponents/AnimableParticlesEmitter.js +19 -0
- package/dist/winComponents/PositioningFrame.d.ts +6 -0
- package/dist/winComponents/PositioningFrame.js +18 -0
- package/dist/winComponents/UpdatableSpineContainer.d.ts +16 -0
- package/dist/winComponents/UpdatableSpineContainer.js +51 -0
- package/dist/winComponents/index.d.ts +4 -0
- package/dist/winComponents/index.js +4 -0
- package/dist/winComponents/winFactory.d.ts +4 -0
- package/dist/winComponents/winFactory.js +11 -0
- package/package.json +23 -5
- package/dist/buttons/BaseButton/ButtonState.d.ts +0 -8
- package/dist/buttons/BaseButton/ButtonState.js +0 -9
- package/dist/buttons/BaseButton/index.d.ts +0 -1
- package/dist/buttons/BaseButton/index.js +0 -1
- package/dist/buttons/index.d.ts +0 -1
- package/dist/buttons/index.js +0 -1
- package/dist/freeSpins/AbstractFreeSpinContainer/AbstractFreeSpinContainer.d.ts +0 -5
- package/dist/freeSpins/AbstractFreeSpinContainer/AbstractFreeSpinContainer.js +0 -3
- package/dist/freeSpins/FreeSpinPlate/FreeSpinPlate.d.ts +0 -28
- package/dist/freeSpins/FreeSpinPlate/FreeSpinPlate.js +0 -57
- package/dist/freeSpins/FreeSpinPlate/index.d.ts +0 -1
- package/dist/freeSpins/FreeSpinPlate/index.js +0 -1
- package/dist/freeSpins/FreeSpinPlate/types.d.ts +0 -14
- package/dist/freeSpins/FreeSpinPlate/types.js +0 -7
- package/dist/freeSpins/FreeSpinSummary/FreeSpinSummary.d.ts +0 -25
- package/dist/freeSpins/FreeSpinSummary/FreeSpinSummary.js +0 -51
- package/dist/freeSpins/FreeSpinSummary/index.d.ts +0 -2
- package/dist/freeSpins/FreeSpinSummary/index.js +0 -2
- package/dist/freeSpins/FreeSpinSummary/types.d.ts +0 -14
- package/dist/freeSpins/FreeSpinSummary/types.js +0 -7
- package/dist/freeSpins/index.d.ts +0 -3
- package/dist/freeSpins/index.js +0 -3
- package/dist/utils/application/application.d.ts +0 -3
- package/dist/utils/application/application.js +0 -2
- package/dist/utils/application/index.d.ts +0 -2
- package/dist/utils/application/index.js +0 -2
- package/dist/utils/application/types.d.ts +0 -2
- /package/dist/{buttons/BaseButton → Rainman}/types.js +0 -0
- /package/dist/{utils/application/types.js → application/ApiConfig/SymbolId.js} +0 -0
- /package/dist/{freeSpins → components}/AbstractFreeSpinContainer/index.d.ts +0 -0
- /package/dist/{freeSpins → components}/AbstractFreeSpinContainer/index.js +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ISC
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# RainMan pixi game engine
|
|
2
2
|
|
|
3
|
-
This repository contains all of the mechanics that used in
|
|
3
|
+
This repository contains all of the mechanics that used in rainMan games. This library uses pixi and pixi-spine as dependencies.
|
|
4
4
|
|
|
5
5
|
### Scripts
|
|
6
6
|
|
|
@@ -18,3 +18,8 @@ This repository contains all of the mechanics that used in rainman games.
|
|
|
18
18
|
Code for the game engine contains in the `src` directory. For create an feature you should add new directory into `src` directory. For example: `freeSpins` and in this folder contains all of the mechanics.
|
|
19
19
|
|
|
20
20
|
In utils directory there all of the utility functions and types.
|
|
21
|
+
|
|
22
|
+
### Test environment
|
|
23
|
+
|
|
24
|
+
To simulate behavior of game engine mechanics, this repository contains react-pixi app, where you can test features that are included in game engine.
|
|
25
|
+
Test environment uses local built of game engine. To setup test environment go to [README](./src/test-environment/README.md) of test environment.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Application, Container } from "pixi.js";
|
|
2
|
+
import { SpeedLevel } from "../application";
|
|
3
|
+
import { RegistryMap } from "./types";
|
|
4
|
+
export declare class ComponentRegistry {
|
|
5
|
+
private registry;
|
|
6
|
+
private speedAdaptableComponents;
|
|
7
|
+
private incentiveJobsManager;
|
|
8
|
+
private speedLevelHandler;
|
|
9
|
+
constructor(app: Application);
|
|
10
|
+
setTemporarySpeedLevel(newSpeedLevel: SpeedLevel): void;
|
|
11
|
+
revertTemporarySpeedLevel(): void;
|
|
12
|
+
setSpeedLevel(newSpeedLevel: SpeedLevel): void;
|
|
13
|
+
nextSpeedLevel(): void;
|
|
14
|
+
getSpeedLevel(): SpeedLevel;
|
|
15
|
+
setUserActivityTime(): void;
|
|
16
|
+
add(component: Container): void;
|
|
17
|
+
update(oldComponent: Container, newComponent: Container): void;
|
|
18
|
+
remove(component: Container): void;
|
|
19
|
+
updateAllSpeedAdaptable(speedLevel: SpeedLevel): void;
|
|
20
|
+
get<T extends keyof RegistryMap>(componentName: T): RegistryMap[T];
|
|
21
|
+
has<T extends keyof RegistryMap>(componentName: T): boolean;
|
|
22
|
+
addMany(components: Container[]): void;
|
|
23
|
+
removeMany(components: Container[]): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { isIncentiveComponentInterface, isSpeedAdapterInterface, SpeedLevelHandler, TimedIncentiveController, } from "../application";
|
|
2
|
+
import { SpeedControlButton } from "../components";
|
|
3
|
+
import { RainMan } from "../Rainman";
|
|
4
|
+
import { openFullscreen } from "../utils";
|
|
5
|
+
export class ComponentRegistry {
|
|
6
|
+
registry = new Map();
|
|
7
|
+
speedAdaptableComponents = new Set();
|
|
8
|
+
incentiveJobsManager;
|
|
9
|
+
speedLevelHandler = SpeedLevelHandler.initWithDefaultSpeedLevels();
|
|
10
|
+
constructor(app) {
|
|
11
|
+
this.incentiveJobsManager = new TimedIncentiveController();
|
|
12
|
+
app.renderer.addListener("pointerdown", () => {
|
|
13
|
+
this.setUserActivityTime();
|
|
14
|
+
openFullscreen();
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
setTemporarySpeedLevel(newSpeedLevel) {
|
|
18
|
+
this.speedLevelHandler.setSpeed(newSpeedLevel);
|
|
19
|
+
this.updateAllSpeedAdaptable(this.speedLevelHandler.currentSpeed);
|
|
20
|
+
}
|
|
21
|
+
revertTemporarySpeedLevel() {
|
|
22
|
+
this.speedLevelHandler.setSpeed(RainMan.settingsStore.currentSpeed);
|
|
23
|
+
this.updateAllSpeedAdaptable(this.speedLevelHandler.currentSpeed);
|
|
24
|
+
}
|
|
25
|
+
setSpeedLevel(newSpeedLevel) {
|
|
26
|
+
this.speedLevelHandler.setSpeed(newSpeedLevel);
|
|
27
|
+
RainMan.settingsStore.setSpeedLevel(this.speedLevelHandler.currentSpeed);
|
|
28
|
+
this.updateAllSpeedAdaptable(RainMan.settingsStore.currentSpeed);
|
|
29
|
+
this.get(SpeedControlButton.registryName).forceTextureUpdate();
|
|
30
|
+
}
|
|
31
|
+
nextSpeedLevel() {
|
|
32
|
+
this.speedLevelHandler.nextSpeed();
|
|
33
|
+
RainMan.settingsStore.setSpeedLevel(this.speedLevelHandler.currentSpeed);
|
|
34
|
+
this.updateAllSpeedAdaptable(RainMan.settingsStore.currentSpeed);
|
|
35
|
+
this.get(SpeedControlButton.registryName).forceTextureUpdate();
|
|
36
|
+
}
|
|
37
|
+
getSpeedLevel() {
|
|
38
|
+
return this.speedLevelHandler.currentSpeed;
|
|
39
|
+
}
|
|
40
|
+
setUserActivityTime() {
|
|
41
|
+
this.incentiveJobsManager.updateLastTimeClicked();
|
|
42
|
+
}
|
|
43
|
+
add(component) {
|
|
44
|
+
if (isSpeedAdapterInterface(component)) {
|
|
45
|
+
this.speedAdaptableComponents.add(component);
|
|
46
|
+
}
|
|
47
|
+
if (isIncentiveComponentInterface(component)) {
|
|
48
|
+
this.incentiveJobsManager.addComponent(component);
|
|
49
|
+
}
|
|
50
|
+
if (component.name == null) {
|
|
51
|
+
throw new Error("Component must have a name!");
|
|
52
|
+
}
|
|
53
|
+
if (this.registry.get(component.name) === undefined) {
|
|
54
|
+
this.registry.set(component.name, component);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
throw Error(`Cannot re-add component with the same name: ${component.name}`);
|
|
58
|
+
}
|
|
59
|
+
update(oldComponent, newComponent) {
|
|
60
|
+
if (oldComponent.name !== newComponent.name) {
|
|
61
|
+
throw new Error(`Cannot update component ${oldComponent.name} to ${newComponent.name}`);
|
|
62
|
+
}
|
|
63
|
+
if (isSpeedAdapterInterface(oldComponent)) {
|
|
64
|
+
this.speedAdaptableComponents.delete(oldComponent);
|
|
65
|
+
if (isSpeedAdapterInterface(newComponent)) {
|
|
66
|
+
this.speedAdaptableComponents.add(newComponent);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (oldComponent.name)
|
|
70
|
+
this.registry.set(oldComponent.name, newComponent);
|
|
71
|
+
}
|
|
72
|
+
remove(component) {
|
|
73
|
+
if (component.name)
|
|
74
|
+
this.registry.delete(component.name);
|
|
75
|
+
}
|
|
76
|
+
updateAllSpeedAdaptable(speedLevel) {
|
|
77
|
+
this.speedAdaptableComponents.forEach((speedAdaptableComponent) => {
|
|
78
|
+
speedAdaptableComponent.adaptToSpeed(speedLevel);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
get(componentName) {
|
|
82
|
+
const componentToReturn = this.registry.get(componentName);
|
|
83
|
+
if (componentToReturn == undefined) {
|
|
84
|
+
throw new Error(`component with name '${componentName}' does not exist in registry`);
|
|
85
|
+
}
|
|
86
|
+
return componentToReturn;
|
|
87
|
+
}
|
|
88
|
+
has(componentName) {
|
|
89
|
+
return this.registry.has(componentName);
|
|
90
|
+
}
|
|
91
|
+
addMany(components) {
|
|
92
|
+
for (const component of components) {
|
|
93
|
+
this.add(component);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
removeMany(components) {
|
|
97
|
+
for (const component of components) {
|
|
98
|
+
this.remove(component);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AbstractColumnsContainer, AbstractFrame, AbstractInnerFrame, AutoplayButton, Background, BaseButton, BUTTONS, COMPONENTS, FreeSpinBox, MessageBox, SpeedControlButton, StylefulUpdatableText, UpdatableTextComponent, UpdatableValueComponent, VolumeButton } from "../components";
|
|
2
|
+
export interface RegistryMap {
|
|
3
|
+
[MessageBox.autoSpinTextRegistryName]: UpdatableValueComponent;
|
|
4
|
+
[MessageBox.currentWinTextRegistryName]: UpdatableTextComponent;
|
|
5
|
+
[MessageBox.freeSpinTextRegistryName]: UpdatableTextComponent;
|
|
6
|
+
[MessageBox.registryName]: MessageBox;
|
|
7
|
+
[SpeedControlButton.registryName]: SpeedControlButton;
|
|
8
|
+
[Background.registryName]: Background;
|
|
9
|
+
[VolumeButton.registryName]: VolumeButton;
|
|
10
|
+
[AutoplayButton.registryName]: AutoplayButton;
|
|
11
|
+
[FreeSpinBox.registryName]: FreeSpinBox;
|
|
12
|
+
[AbstractFrame.registryName]: AbstractFrame;
|
|
13
|
+
[AbstractInnerFrame.registryName]: AbstractInnerFrame;
|
|
14
|
+
[AbstractColumnsContainer.registryName]: AbstractColumnsContainer;
|
|
15
|
+
[BUTTONS.refresh]: BaseButton;
|
|
16
|
+
[BUTTONS.plus]: BaseButton;
|
|
17
|
+
[BUTTONS.neg]: BaseButton;
|
|
18
|
+
[BUTTONS.info]: BaseButton;
|
|
19
|
+
[BUTTONS.more]: BaseButton;
|
|
20
|
+
[BUTTONS.gamble]: BaseButton;
|
|
21
|
+
[COMPONENTS.betText]: UpdatableTextComponent;
|
|
22
|
+
[COMPONENTS.creditText]: UpdatableTextComponent;
|
|
23
|
+
[COMPONENTS.bigWin]: StylefulUpdatableText;
|
|
24
|
+
[COMPONENTS.mysteryWin]: StylefulUpdatableText;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { AbstractColumnsContainer, AbstractFrame, AbstractInnerFrame, AutoplayButton, Background, BUTTONS, COMPONENTS, FreeSpinBox, MessageBox, SpeedControlButton, VolumeButton, } from "../components";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Nullable, PlayableAction } from "../utils";
|
|
2
|
+
export declare class DescribedPlayableAction<T = Record<string, never>> {
|
|
3
|
+
readonly type: T;
|
|
4
|
+
action: PlayableAction;
|
|
5
|
+
winAmount: Nullable<number>;
|
|
6
|
+
isFirstStreak: boolean;
|
|
7
|
+
constructor(type: T, action: PlayableAction, winAmount?: Nullable<number>);
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DescribedPlayableAction";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DescribedPlayableAction";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Money } from "ts-money";
|
|
2
|
+
import { RainMan } from "../Rainman";
|
|
3
|
+
export class MoneyText {
|
|
4
|
+
money;
|
|
5
|
+
constructor(amount) {
|
|
6
|
+
this.money = Money.fromDecimal(amount, RainMan.config?.currency, Math.round);
|
|
7
|
+
}
|
|
8
|
+
toString() {
|
|
9
|
+
return `${this.money} ${RainMan.config.currency}`;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MoneyText";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MoneyText";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../components/dictionary/i18n";
|
|
2
|
+
import { Application } from "pixi.js";
|
|
3
|
+
import { SpinLogicFactory, SymbolIds, WinTypeIds } from "../application";
|
|
4
|
+
import { ComponentRegistry } from "../ComponentRegistry";
|
|
5
|
+
import { SettingsStore } from "../stores";
|
|
6
|
+
import { AppConfig, OptionalAppConfig, RequiredAppConfig } from "./types";
|
|
7
|
+
export declare class RainMan {
|
|
8
|
+
static app: Application;
|
|
9
|
+
static config: RequiredAppConfig & OptionalAppConfig;
|
|
10
|
+
static symbolIds: SymbolIds;
|
|
11
|
+
static winTypeIds: WinTypeIds;
|
|
12
|
+
static settingsStore: SettingsStore;
|
|
13
|
+
static componentRegistry: ComponentRegistry;
|
|
14
|
+
static spinLogicFactory: SpinLogicFactory;
|
|
15
|
+
constructor(app: Application, config: AppConfig, symbolIds: SymbolIds, winTypeIds: WinTypeIds, spinLogicFactory: SpinLogicFactory);
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "../components/dictionary/i18n";
|
|
2
|
+
import { merge } from "lodash";
|
|
3
|
+
import { ComponentRegistry } from "../ComponentRegistry";
|
|
4
|
+
import { SettingsStore } from "../stores";
|
|
5
|
+
import { defaultAppConfig } from "./appConfig";
|
|
6
|
+
export class RainMan {
|
|
7
|
+
static app;
|
|
8
|
+
static config;
|
|
9
|
+
static symbolIds;
|
|
10
|
+
static winTypeIds;
|
|
11
|
+
static settingsStore;
|
|
12
|
+
static componentRegistry;
|
|
13
|
+
static spinLogicFactory;
|
|
14
|
+
constructor(app, config, symbolIds, winTypeIds, spinLogicFactory) {
|
|
15
|
+
RainMan.app = app;
|
|
16
|
+
RainMan.config = merge(defaultAppConfig, config);
|
|
17
|
+
RainMan.symbolIds = symbolIds;
|
|
18
|
+
RainMan.winTypeIds = winTypeIds;
|
|
19
|
+
RainMan.settingsStore = new SettingsStore();
|
|
20
|
+
RainMan.componentRegistry = new ComponentRegistry(app);
|
|
21
|
+
RainMan.spinLogicFactory = spinLogicFactory;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Color } from "pixi.js";
|
|
2
|
+
import { Currencies } from "ts-money";
|
|
3
|
+
export const defaultAppConfig = {
|
|
4
|
+
gameHeight: 1920,
|
|
5
|
+
gameWidth: 1080,
|
|
6
|
+
idleTimeout: 10000,
|
|
7
|
+
fontSize: 35,
|
|
8
|
+
fontColor: new Color(0xfbd400).toHex(),
|
|
9
|
+
updatableTextValueColor: new Color(0xffffff).toHex(),
|
|
10
|
+
fontFace: "HelveticaNeueLTStd",
|
|
11
|
+
currency: Currencies["USD"],
|
|
12
|
+
durationOfActions: {
|
|
13
|
+
eachColumnsSpinDelay: [0, 200, 700, 1200, 1800],
|
|
14
|
+
spinBaseTime: 800,
|
|
15
|
+
timeToSpeedUp: 200,
|
|
16
|
+
timeToSlowDown: 10,
|
|
17
|
+
symbolDropDownTime: 500,
|
|
18
|
+
wiggleTweenDuration: 1000,
|
|
19
|
+
balloonFlyUpTime: 500,
|
|
20
|
+
timeToSetResults: 10,
|
|
21
|
+
bigWinDuration: 2000,
|
|
22
|
+
minConfettiTime: 1000,
|
|
23
|
+
maxConfettiTime: 5000,
|
|
24
|
+
randomizeSetInterval: 250,
|
|
25
|
+
randomizeSetDuration: 2000,
|
|
26
|
+
freeSpinPlateVisibleTime: 2000,
|
|
27
|
+
freeSpinSummaryVisibleTime: 2000,
|
|
28
|
+
updatableTextCountingDuration: 500,
|
|
29
|
+
scatterDelayerTime: 2000,
|
|
30
|
+
scatterSpinningTime: 9200,
|
|
31
|
+
mobileSpinTimeout: 300,
|
|
32
|
+
mysteryWinMinimumTime: 2000,
|
|
33
|
+
bigWinMinimumTime: 2000,
|
|
34
|
+
bigWinPhaseTimeout: 2800,
|
|
35
|
+
speedPopupVisibleTime: 2000,
|
|
36
|
+
minAnimationTime: 1000,
|
|
37
|
+
},
|
|
38
|
+
constants: {
|
|
39
|
+
bigWinMultiplier: 30,
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Currency } from "ts-money";
|
|
2
|
+
import { DeepPartial } from "../utils";
|
|
3
|
+
export type RequiredAppConfig = {
|
|
4
|
+
websocketUrl: string;
|
|
5
|
+
gameInitToken: string;
|
|
6
|
+
gameInitVendorId: number;
|
|
7
|
+
gameInitReference: string;
|
|
8
|
+
numberOfColumns: number;
|
|
9
|
+
numberOfRows: number;
|
|
10
|
+
};
|
|
11
|
+
export type OptionalAppConfig = {
|
|
12
|
+
gameWidth: number;
|
|
13
|
+
gameHeight: number;
|
|
14
|
+
idleTimeout: number;
|
|
15
|
+
currency: Currency;
|
|
16
|
+
fontSize: number;
|
|
17
|
+
fontColor: string;
|
|
18
|
+
updatableTextValueColor: string;
|
|
19
|
+
fontFace: string;
|
|
20
|
+
durationOfActions: {
|
|
21
|
+
eachColumnsSpinDelay: number[];
|
|
22
|
+
spinBaseTime: number;
|
|
23
|
+
timeToSpeedUp: number;
|
|
24
|
+
timeToSlowDown: number;
|
|
25
|
+
symbolDropDownTime: number;
|
|
26
|
+
wiggleTweenDuration: number;
|
|
27
|
+
balloonFlyUpTime: number;
|
|
28
|
+
timeToSetResults: number;
|
|
29
|
+
bigWinDuration: number;
|
|
30
|
+
minConfettiTime: number;
|
|
31
|
+
maxConfettiTime: number;
|
|
32
|
+
randomizeSetInterval: number;
|
|
33
|
+
randomizeSetDuration: number;
|
|
34
|
+
freeSpinPlateVisibleTime: number;
|
|
35
|
+
freeSpinSummaryVisibleTime: number;
|
|
36
|
+
updatableTextCountingDuration: number;
|
|
37
|
+
scatterDelayerTime: number;
|
|
38
|
+
scatterSpinningTime: number;
|
|
39
|
+
mobileSpinTimeout: number;
|
|
40
|
+
mysteryWinMinimumTime: number;
|
|
41
|
+
bigWinMinimumTime: number;
|
|
42
|
+
bigWinPhaseTimeout: number;
|
|
43
|
+
speedPopupVisibleTime: number;
|
|
44
|
+
minAnimationTime: number;
|
|
45
|
+
};
|
|
46
|
+
constants: {
|
|
47
|
+
bigWinMultiplier: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export type AppConfig = RequiredAppConfig & DeepPartial<OptionalAppConfig>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { InitDataInterface } from "../../connectivity";
|
|
2
|
+
export declare class ApiConfig {
|
|
3
|
+
readonly token: string;
|
|
4
|
+
symbolMap: Map<number, unknown>;
|
|
5
|
+
private rawData;
|
|
6
|
+
private bets;
|
|
7
|
+
private winMap;
|
|
8
|
+
private transformationMap;
|
|
9
|
+
constructor(data: InitDataInterface);
|
|
10
|
+
getNextBet(currentBet: number): number;
|
|
11
|
+
getPreviousBet(currentBet: number): number;
|
|
12
|
+
getFirstBet(): number;
|
|
13
|
+
getHighestBet(limit?: number): number;
|
|
14
|
+
getSymbolId<T>(number: number): T;
|
|
15
|
+
getWinId<T>(number: number): T;
|
|
16
|
+
getTransformationById<T>(transformationNumber: number): T;
|
|
17
|
+
mapSymbolIdsToSymbolNames<T>(symbols_on_reels: number[][]): T[];
|
|
18
|
+
private getBetAtPosition;
|
|
19
|
+
private initSymbolMap;
|
|
20
|
+
private initWinMap;
|
|
21
|
+
private initTransformationMap;
|
|
22
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { RainMan } from "../../Rainman";
|
|
2
|
+
import { debug } from "../../utils";
|
|
3
|
+
export class ApiConfig {
|
|
4
|
+
token;
|
|
5
|
+
symbolMap = new Map();
|
|
6
|
+
rawData;
|
|
7
|
+
bets;
|
|
8
|
+
winMap = new Map();
|
|
9
|
+
transformationMap = new Map();
|
|
10
|
+
constructor(data) {
|
|
11
|
+
this.rawData = data;
|
|
12
|
+
if (data.action !== "init") {
|
|
13
|
+
throw new Error(`Invalid type "${data.action}" provided, "init" expected`);
|
|
14
|
+
}
|
|
15
|
+
this.token = data.token;
|
|
16
|
+
this.bets = data.bets;
|
|
17
|
+
this.initSymbolMap(data);
|
|
18
|
+
this.initWinMap(data);
|
|
19
|
+
this.initTransformationMap(data);
|
|
20
|
+
}
|
|
21
|
+
getNextBet(currentBet) {
|
|
22
|
+
const currentBetPosition = this.bets.indexOf(currentBet);
|
|
23
|
+
return this.getBetAtPosition(currentBetPosition + 1, currentBetPosition);
|
|
24
|
+
}
|
|
25
|
+
getPreviousBet(currentBet) {
|
|
26
|
+
const currentBetPosition = this.bets.indexOf(currentBet);
|
|
27
|
+
return this.getBetAtPosition(currentBetPosition - 1, currentBetPosition);
|
|
28
|
+
}
|
|
29
|
+
getFirstBet() {
|
|
30
|
+
return this.getBetAtPosition(0, 0);
|
|
31
|
+
}
|
|
32
|
+
getHighestBet(limit = Number.POSITIVE_INFINITY) {
|
|
33
|
+
const bet = [...this.bets].reverse().find((bet) => bet <= limit);
|
|
34
|
+
if (bet === undefined)
|
|
35
|
+
throw new Error("None of the bets match constraint");
|
|
36
|
+
return bet;
|
|
37
|
+
}
|
|
38
|
+
getSymbolId(number) {
|
|
39
|
+
if (!this.symbolMap.has(number)) {
|
|
40
|
+
throw new Error(`'${number}' was not found in symbol map`);
|
|
41
|
+
}
|
|
42
|
+
return this.symbolMap.get(number);
|
|
43
|
+
}
|
|
44
|
+
getWinId(number) {
|
|
45
|
+
if (!this.winMap.has(number)) {
|
|
46
|
+
throw new Error(`'${number}' was not found in win map`);
|
|
47
|
+
}
|
|
48
|
+
return this.winMap.get(number);
|
|
49
|
+
}
|
|
50
|
+
getTransformationById(transformationNumber) {
|
|
51
|
+
if (!this.transformationMap.has(transformationNumber)) {
|
|
52
|
+
throw new Error(`'${transformationNumber}' was not found in transformation map`);
|
|
53
|
+
}
|
|
54
|
+
return this.transformationMap.get(transformationNumber);
|
|
55
|
+
}
|
|
56
|
+
mapSymbolIdsToSymbolNames(symbols_on_reels) {
|
|
57
|
+
return symbols_on_reels
|
|
58
|
+
.map((reel) => {
|
|
59
|
+
return reel.map((symbolId) => this.getSymbolId(symbolId));
|
|
60
|
+
})
|
|
61
|
+
.flat();
|
|
62
|
+
}
|
|
63
|
+
getBetAtPosition(primaryPosition, fallbackPosition) {
|
|
64
|
+
if (typeof this.bets[primaryPosition] == "undefined") {
|
|
65
|
+
return this.bets[fallbackPosition];
|
|
66
|
+
}
|
|
67
|
+
return this.bets[primaryPosition];
|
|
68
|
+
}
|
|
69
|
+
initSymbolMap(data) {
|
|
70
|
+
for (const [key, name] of data.symbols_names.entries()) {
|
|
71
|
+
const backendId = data.symbols[key];
|
|
72
|
+
if (!Object.values(RainMan.symbolIds).includes(name)) {
|
|
73
|
+
debug(`🛑 "${name}" was not found in SymbolIds enum!`);
|
|
74
|
+
}
|
|
75
|
+
this.symbolMap.set(backendId, name);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
initWinMap(data) {
|
|
79
|
+
for (const key in data.wins_names) {
|
|
80
|
+
const name = data.wins_names[key];
|
|
81
|
+
if (!Object.values(RainMan.winTypeIds).includes(name)) {
|
|
82
|
+
throw new Error(`🛑 "${name}" was not found in WinTypesIds enum!`);
|
|
83
|
+
}
|
|
84
|
+
this.winMap.set(Number(key), name);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
initTransformationMap(data) {
|
|
88
|
+
for (const [key, name] of data.transformations_names.entries()) {
|
|
89
|
+
const backendId = data.transformations_types[key];
|
|
90
|
+
this.transformationMap.set(backendId, name);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Nullable } from "../../utils";
|
|
2
|
+
export declare const SPEED_PREFIX = "speed-";
|
|
3
|
+
export declare class ButtonsEventManager {
|
|
4
|
+
private settingsPlusButton;
|
|
5
|
+
private settingsMinusButton;
|
|
6
|
+
private settingsSpeedButton;
|
|
7
|
+
private settingsSpeedTurtle;
|
|
8
|
+
private settingsSpeedRabbit;
|
|
9
|
+
private settingsSpeedCheetah;
|
|
10
|
+
private lastLayerInvoked;
|
|
11
|
+
speedPopupShownAt: number;
|
|
12
|
+
private setButtonAvailability;
|
|
13
|
+
enableButtons: () => void;
|
|
14
|
+
disableButtons: () => void;
|
|
15
|
+
initSettingsEvents(): void;
|
|
16
|
+
setUpUIElementsInteractivity(): void;
|
|
17
|
+
initBetPlusButtonEvent(setBetCallback: (strategy: "first" | "increase" | "decrease") => void): void;
|
|
18
|
+
initBetMinusButtonEvent(setBetCallback: (strategy: "first" | "increase" | "decrease") => void): void;
|
|
19
|
+
initFreeSpinModal(): void;
|
|
20
|
+
initVolumeButtonEvent(): void;
|
|
21
|
+
initInfoButtonEvent(): void;
|
|
22
|
+
initMoreButtonEvent(): void;
|
|
23
|
+
initAutoplayButtonEvent(): void;
|
|
24
|
+
initGambleButton(onClick: () => void, disabled: boolean): void;
|
|
25
|
+
setSpeedPopupVisibility(displayValue: "flex" | "none"): void;
|
|
26
|
+
setConfirmAutoplayButton(confirmAutoplayButtonCallback: () => void): void;
|
|
27
|
+
getInvokedSettingItem(): Nullable<HTMLElement>;
|
|
28
|
+
disableButtonsForAction(actionToWait: () => Promise<void>): Promise<void>;
|
|
29
|
+
private handleModalInvocation;
|
|
30
|
+
}
|