pixi-rainman-game-engine 0.1.11 → 0.1.13
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/application/ApiConfig/ApiConfig.d.ts +2 -1
- package/dist/application/ApiConfig/ApiConfig.js +2 -0
- package/dist/components/AbstractMainContainer/AbstractMainContainer.d.ts +2 -2
- package/dist/components/common/AnimatedNumber.d.ts +3 -3
- package/dist/components/dictionary/locales/en.json +3 -1
- package/dist/connectivity/serverData.d.ts +3 -0
- package/dist/connectivity/wins.d.ts +7 -1
- package/dist/controllers/AbstractController.d.ts +1 -1
- package/dist/controllers/AbstractController.js +2 -0
- package/dist/winComponents/UpdatableSpineContainer.d.ts +2 -2
- package/dist/winComponents/UpdatableSpineContainer.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InitDataInterface, SpinDataInterface } from "../../connectivity";
|
|
1
|
+
import { InitDataInterface, InitExtraData, SpinDataInterface } from "../../connectivity";
|
|
2
2
|
import { AdaptedSpinResponse } from "../SpinLogic";
|
|
3
3
|
import { SymbolId } from "./SymbolId";
|
|
4
4
|
import { TransformationTypeId } from "./TransformationTypesId";
|
|
@@ -17,6 +17,7 @@ export declare class ApiConfig {
|
|
|
17
17
|
private readonly bets;
|
|
18
18
|
private winMap;
|
|
19
19
|
private transformationMap;
|
|
20
|
+
extraData: InitExtraData;
|
|
20
21
|
/**
|
|
21
22
|
* Create instance of ApiConfig, requires InitDataInterfac
|
|
22
23
|
*
|
|
@@ -15,6 +15,7 @@ export class ApiConfig {
|
|
|
15
15
|
bets;
|
|
16
16
|
winMap = new Map();
|
|
17
17
|
transformationMap = new Map();
|
|
18
|
+
extraData;
|
|
18
19
|
/**
|
|
19
20
|
* Create instance of ApiConfig, requires InitDataInterfac
|
|
20
21
|
*
|
|
@@ -26,6 +27,7 @@ export class ApiConfig {
|
|
|
26
27
|
}
|
|
27
28
|
this.token = data.token;
|
|
28
29
|
this.bets = data.bets;
|
|
30
|
+
this.extraData = data.extra_data;
|
|
29
31
|
this.initSymbolMap(data);
|
|
30
32
|
this.initWinMap(data);
|
|
31
33
|
this.initStreakMap(data);
|
|
@@ -44,8 +44,8 @@ export declare abstract class AbstractMainContainer extends Container {
|
|
|
44
44
|
protected createFreeSpinSummary(_resolver: () => void, _freeSpinCount: number, _winAmount: number): AbstractFreeSpinContainer | null;
|
|
45
45
|
invokeFreeSpinSummary(freeSpinCount: number, winAmount: number): Promise<void>;
|
|
46
46
|
hideFreeSpinSummary(): void;
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
protected showOverlay(): void;
|
|
48
|
+
protected hideOverlay(): void;
|
|
49
49
|
get bigWinVisibleFor(): number;
|
|
50
50
|
get mysteryWinVisibleFor(): number;
|
|
51
51
|
protected abstract createBigWinContainer(): UpdatableSpineContainer;
|
|
@@ -3,10 +3,10 @@ export declare class AnimatedNumber extends Container {
|
|
|
3
3
|
private spineName;
|
|
4
4
|
private number;
|
|
5
5
|
private digits;
|
|
6
|
-
constructor(spineName: string, number: number);
|
|
6
|
+
constructor(spineName: string, number: number | string);
|
|
7
7
|
private setDigits;
|
|
8
8
|
private removeDigits;
|
|
9
|
-
get value(): number;
|
|
10
|
-
set value(value: number);
|
|
9
|
+
get value(): number | string;
|
|
10
|
+
set value(value: number | string);
|
|
11
11
|
play(): void;
|
|
12
12
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"youHaveWon": "YOU HAVE WON",
|
|
17
17
|
"youHaveWonAdditional": "YOU HAVE WON ADDITIONAL",
|
|
18
18
|
"freeSpins": "FREE SPINS",
|
|
19
|
+
"jackpot": "JACKPOT",
|
|
19
20
|
"freeSpinsSummaryText": "In {{amount}} free spins",
|
|
20
21
|
"freeSpinsSummaryTextShort": "In {{amount}}",
|
|
21
22
|
"pressToContinue": "\"Press ME to continue...\"",
|
|
@@ -24,7 +25,8 @@
|
|
|
24
25
|
"numberWithCurrency": "{{amount}}{{currency}}",
|
|
25
26
|
"currentWin": "WIN: ",
|
|
26
27
|
"currentFreeSpins": "FREE SPINS: ",
|
|
27
|
-
"linePays": "LINE
|
|
28
|
+
"linePays": "LINE PAYS {{amount}}",
|
|
29
|
+
"lineWithNumberPays": "LINE {{winLineNumber}} PAYS {{amount}}",
|
|
28
30
|
"gamePays": "GAME PAYS {{amount}}",
|
|
29
31
|
"scatterPays": "SCATTER PAYS {{amount}}",
|
|
30
32
|
"idleMessages": {
|
|
@@ -14,6 +14,9 @@ export interface InitDataInterface {
|
|
|
14
14
|
transformations_names: Array<string>;
|
|
15
15
|
transformations_types: Array<number>;
|
|
16
16
|
paytable: PayTableInterface;
|
|
17
|
+
extra_data: InitExtraData;
|
|
18
|
+
}
|
|
19
|
+
export interface InitExtraData {
|
|
17
20
|
}
|
|
18
21
|
type FixedQuantityValue = Record<string, {
|
|
19
22
|
value: number | number[];
|
|
@@ -47,7 +47,13 @@ export type SuperBonusWin = BaseWin & {
|
|
|
47
47
|
export type ScatterWin = BaseWin & {
|
|
48
48
|
type: typeof PossibleWins.scatter;
|
|
49
49
|
};
|
|
50
|
-
export type
|
|
50
|
+
export type RouletteWin = BaseWin & {
|
|
51
|
+
type: typeof PossibleWins.roulette;
|
|
52
|
+
};
|
|
53
|
+
export type JackpotWin = BaseWin & {
|
|
54
|
+
type: typeof PossibleWins.jackpotMini | typeof PossibleWins.jackpotMinor | typeof PossibleWins.jackpotMajor | typeof PossibleWins.jackpotGrand;
|
|
55
|
+
};
|
|
56
|
+
export type Win = StreakWin | FreeSpinWin | GambleWin | MysteryWin | EggWin | GoldWin | BigWin | BonusWin | SuperBonusWin | ScatterWin | RouletteWin | JackpotWin;
|
|
51
57
|
/**
|
|
52
58
|
* Type represents data that come from backend
|
|
53
59
|
*
|
|
@@ -57,7 +57,7 @@ export declare abstract class AbstractController<T> {
|
|
|
57
57
|
protected changeGamePhase(newPhase: GamePhase): void;
|
|
58
58
|
private setRefreshButtonBasedOnPhase;
|
|
59
59
|
private setMessageBoxBasedOnPhase;
|
|
60
|
-
|
|
60
|
+
protected getReelIndexesToShowMysteryFx(spinLogic: SpinLogic): number[];
|
|
61
61
|
protected handleSpinLogic(): void;
|
|
62
62
|
protected throttledSpin(): void;
|
|
63
63
|
private getBoughtNumberOfFreeSpins;
|
|
@@ -602,6 +602,8 @@ export class AbstractController {
|
|
|
602
602
|
SoundManager.pause(SoundTracks.mysteryDrawLoop);
|
|
603
603
|
this.updateUiValues(winAmount);
|
|
604
604
|
this._lastWinAmount += winAmount;
|
|
605
|
+
if (RainMan.settingsStore.isFreeSpinsPlayEnabled)
|
|
606
|
+
this.uiController.increaseTotalFreeSpinWinAmount(winAmount);
|
|
605
607
|
await new Promise((resolve) => {
|
|
606
608
|
this.resolveMysteryWin = resolve;
|
|
607
609
|
setTimeout(() => {
|
|
@@ -12,8 +12,8 @@ import { PositioningFrame } from "./PositioningFrame";
|
|
|
12
12
|
* @extends {Container}
|
|
13
13
|
*/
|
|
14
14
|
export declare class UpdatableSpineContainer extends Container {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
text: StylefulUpdatableText;
|
|
16
|
+
spine: ScalableSpine;
|
|
17
17
|
protected frame: PositioningFrame;
|
|
18
18
|
private emitters;
|
|
19
19
|
private spineScale;
|
|
@@ -28,10 +28,10 @@ export class UpdatableSpineContainer extends Container {
|
|
|
28
28
|
this.sortableChildren = true;
|
|
29
29
|
RainMan.componentRegistry.add(this.text);
|
|
30
30
|
this.addChild(this.frame);
|
|
31
|
+
this.emitters.forEach((emitter) => this.addChild(emitter));
|
|
31
32
|
this.addChild(this.spine);
|
|
32
33
|
this.addChild(this.text);
|
|
33
34
|
this.fitToScreen();
|
|
34
|
-
this.emitters.forEach((emitter) => this.addChild(emitter));
|
|
35
35
|
Ticker.shared.add(this.animateBox, this);
|
|
36
36
|
}
|
|
37
37
|
positionText() {
|
package/package.json
CHANGED