pixi-rainman-game-engine 0.2.23 → 0.2.24

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.
@@ -20,6 +20,7 @@ export declare class SpinLogic {
20
20
  constructor(spinConfig: AdaptedSpinResponse, gameConfig: ApiConfig);
21
21
  get postSpinBalance(): number;
22
22
  get winTotalAmount(): number;
23
+ get winTotalStreakAmount(): number;
23
24
  get winTotalAmountWithoutMystery(): number;
24
25
  get onStopBlindsConfiguration(): SymbolReels;
25
26
  get finalBlindsConfiguration(): SymbolReels;
@@ -35,6 +35,10 @@ export class SpinLogic {
35
35
  get winTotalAmount() {
36
36
  return this._winTotalAmount;
37
37
  }
38
+ get winTotalStreakAmount() {
39
+ return this._winScenarios.reduce((accumulator, scenario) => accumulator +
40
+ scenario.wins.reduce((winAccumulator, currentWin) => currentWin.type === PossibleWins.streak ? winAccumulator + currentWin.amount : winAccumulator, 0), 0);
41
+ }
38
42
  get winTotalAmountWithoutMystery() {
39
43
  return this._winScenarios.reduce((accumulator, scenario) => accumulator +
40
44
  scenario.wins.reduce((winAccumulator, currentWin) => currentWin.type === PossibleWins.mystery ? winAccumulator : winAccumulator + currentWin.amount, 0), 0);
@@ -23,6 +23,7 @@ export declare abstract class AbstractColumnsContainer extends Container impleme
23
23
  quickReelsStop: boolean;
24
24
  protected playLineSoundOnEachStreak: boolean;
25
25
  protected abstract mapSymbolToSound: Record<string, SoundTrack>;
26
+ protected currentPlayingSoundName: Nullable<SoundTrack>;
26
27
  protected abstract maskCoordinates: {
27
28
  top: number;
28
29
  bottom: number;
@@ -24,6 +24,7 @@ export class AbstractColumnsContainer extends Container {
24
24
  playedSounds = [];
25
25
  quickReelsStop = false;
26
26
  playLineSoundOnEachStreak = false;
27
+ currentPlayingSoundName = null;
27
28
  constructor() {
28
29
  super();
29
30
  this.x = 0;
@@ -205,6 +206,10 @@ export class AbstractColumnsContainer extends Container {
205
206
  }
206
207
  stopPlayingSymbolsInColumns() {
207
208
  this.allColumns.forEach((column) => column.stopAllPlayingSymbols());
209
+ if (this.currentPlayingSoundName) {
210
+ SoundManager.stop(this.currentPlayingSoundName);
211
+ this.currentPlayingSoundName = null;
212
+ }
208
213
  }
209
214
  stopPlayingSymbolsTransformationInColumns() {
210
215
  this.allColumns.forEach((column) => column.stopTransformationPlayingSymbols());
@@ -2,5 +2,6 @@ export * from "./AnimableParticlesEmitter";
2
2
  export * from "./BigWinContainer";
3
3
  export * from "./MysteryWinContainer";
4
4
  export * from "./PositioningFrame";
5
+ export * from "./TexturedText";
5
6
  export * from "./UpdatableSpineContainer";
6
7
  export * from "./winFactory";
@@ -2,5 +2,6 @@ export * from "./AnimableParticlesEmitter";
2
2
  export * from "./BigWinContainer";
3
3
  export * from "./MysteryWinContainer";
4
4
  export * from "./PositioningFrame";
5
+ export * from "./TexturedText";
5
6
  export * from "./UpdatableSpineContainer";
6
7
  export * from "./winFactory";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixi-rainman-game-engine",
3
- "version": "0.2.23",
3
+ "version": "0.2.24",
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",