pixi-rainman-game-engine 0.2.21 → 0.2.22

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.
@@ -163,6 +163,10 @@ export declare abstract class AbstractController<T> {
163
163
  * @param {SpinLogic} _spinLogic spin logic
164
164
  */
165
165
  protected onSpinningEnd(_spinLogic: SpinLogic): Promise<void>;
166
+ /**
167
+ * Function to perform actions after all actions are performed
168
+ */
169
+ protected performActionsAfterAllActions(): Promise<void>;
166
170
  /**
167
171
  * Function to perform additional actions after spin
168
172
  */
@@ -577,6 +577,10 @@ export class AbstractController {
577
577
  * @param {SpinLogic} _spinLogic spin logic
578
578
  */
579
579
  async onSpinningEnd(_spinLogic) { }
580
+ /**
581
+ * Function to perform actions after all actions are performed
582
+ */
583
+ async performActionsAfterAllActions() { }
580
584
  /**
581
585
  * Function to perform additional actions after spin
582
586
  */
@@ -738,6 +742,7 @@ export class AbstractController {
738
742
  if (RainMan.settingsStore.isFreeSpinsPlayEnabled) {
739
743
  this.disableAutoplayButton(false);
740
744
  }
745
+ await this.performActionsAfterAllActions();
741
746
  RainMan.settingsStore.setModalsAvailability(true);
742
747
  RainMan.globals.shouldShowModals = true;
743
748
  RainMan.settingsStore.setIsPlayingAnyAction(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixi-rainman-game-engine",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
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",