pixi-rainman-game-engine 0.1.29 → 0.1.30

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.
@@ -6,7 +6,7 @@ export interface InitDataInterface {
6
6
  token: string;
7
7
  bets: Array<number>;
8
8
  currency: string;
9
- language: string;
9
+ language_code: string;
10
10
  symbols_names: Array<string>;
11
11
  symbols: Array<number>;
12
12
  streaks: Array<Array<Point>>;
@@ -50,13 +50,19 @@ export type ScatterWin = BaseWin & {
50
50
  export type RouletteWin = BaseWin & {
51
51
  type: typeof PossibleWins.roulette;
52
52
  };
53
+ export type MultiWin = BaseWin & {
54
+ type: typeof PossibleWins.multi;
55
+ };
56
+ export type JokerWin = BaseWin & {
57
+ type: typeof PossibleWins.joker;
58
+ };
53
59
  export type JackpotWin = BaseWin & {
54
60
  type: typeof PossibleWins.jackpotMini | typeof PossibleWins.jackpotMinor | typeof PossibleWins.jackpotMajor | typeof PossibleWins.jackpotGrand;
55
61
  };
56
62
  export type CoinWin = BaseWin & {
57
63
  type: typeof PossibleWins.coin;
58
64
  };
59
- export type Win = StreakWin | FreeSpinWin | GambleWin | MysteryWin | EggWin | GoldWin | BigWin | BonusWin | SuperBonusWin | ScatterWin | RouletteWin | JackpotWin | CoinWin;
65
+ export type Win = StreakWin | FreeSpinWin | GambleWin | MysteryWin | EggWin | GoldWin | BigWin | BonusWin | SuperBonusWin | ScatterWin | RouletteWin | JackpotWin | CoinWin | MultiWin | JokerWin;
60
66
  /**
61
67
  * Type represents data that come from backend
62
68
  *
@@ -15,4 +15,6 @@ export declare const PossibleWins: {
15
15
  readonly bigWin: "big-win";
16
16
  readonly bonus: "bonus";
17
17
  readonly superBonus: "super-bonus";
18
+ readonly joker: "joker";
19
+ readonly multi: "multi";
18
20
  };
@@ -15,4 +15,6 @@ export const PossibleWins = {
15
15
  bigWin: "big-win",
16
16
  bonus: "bonus",
17
17
  superBonus: "super-bonus",
18
+ joker: "joker",
19
+ multi: "multi",
18
20
  };
@@ -75,6 +75,7 @@ export declare abstract class AbstractController<T> {
75
75
  protected canSkipActions(): boolean;
76
76
  protected onSpinningStart(): Promise<void>;
77
77
  protected onSpinningEnd(_spinLogic: SpinLogic): Promise<void>;
78
+ protected performActionsAfterSpin(): void;
78
79
  private spin;
79
80
  private handleFreeSpinPlateInvocation;
80
81
  protected handleFreeSpinSummaryPlateInvocation(): Promise<void>;
@@ -421,6 +421,7 @@ export class AbstractController {
421
421
  }
422
422
  async onSpinningStart() { }
423
423
  async onSpinningEnd(_spinLogic) { }
424
+ performActionsAfterSpin() { }
424
425
  async spin() {
425
426
  if (this.uiController.currentBalance < RainMan.settingsStore.bet) {
426
427
  try {
@@ -541,6 +542,7 @@ export class AbstractController {
541
542
  RainMan.settingsStore.setRoundNumber(this.roundNumber);
542
543
  this.handleDisablingButtons();
543
544
  RainMan.settingsStore.setModalsAvailability(true);
545
+ this.performActionsAfterSpin();
544
546
  }
545
547
  async handleFreeSpinPlateInvocation(numberOfFreeSpins, isAdditionalFreeSpin = false) {
546
548
  await this.buttonsEventManager.disableButtonsForAction(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixi-rainman-game-engine",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "This repository contains all of the mechanics that used in rainman games.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",