pixi-rainman-game-engine 0.1.33 → 0.1.34

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.
@@ -68,7 +68,7 @@ export declare abstract class AbstractColumnsContainer extends Container impleme
68
68
  abstract getColumnAtPosition(column: number): AbstractSymbolsColumn;
69
69
  stopPlayingSymbolsInColumns(): void;
70
70
  setInteractivityForSymbols(flag: boolean): void;
71
- handleDestroyTransformations(transformations: DropTransformationDetails[], skipAnimations?: boolean, isStandalone?: boolean): Promise<void>;
71
+ handleDestroyTransformations(transformations: DropTransformationDetails[], skipAnimations?: boolean, isStandalone?: boolean, allowSoundInSymbolsColumn?: boolean): Promise<void>;
72
72
  protected createMask(): Graphics;
73
73
  fixSymbolsColumnsPosition(): void;
74
74
  protected prepareConfiguringReelsEnd(finalSymbolReels: SymbolReels): PlayableAction[];
@@ -188,12 +188,12 @@ export class AbstractColumnsContainer extends Container {
188
188
  setInteractivityForSymbols(flag) {
189
189
  this.allColumns.forEach((column) => column.setAllSymbolsInteractiveFlag(flag));
190
190
  }
191
- async handleDestroyTransformations(transformations, skipAnimations = false, isStandalone = false) {
191
+ async handleDestroyTransformations(transformations, skipAnimations = false, isStandalone = false, allowSoundInSymbolsColumn = true) {
192
192
  if (transformations.length === 0) {
193
193
  return Promise.resolve();
194
194
  }
195
195
  const column = this.getColumnAtPosition(transformations[0].coordinates.x);
196
- await column.handleMultipleSymbolDropping(transformations, skipAnimations, isStandalone);
196
+ await column.handleMultipleSymbolDropping(transformations, skipAnimations, isStandalone, allowSoundInSymbolsColumn);
197
197
  }
198
198
  createMask() {
199
199
  const mask = new Graphics();
@@ -19,7 +19,7 @@ export declare abstract class AbstractSymbolBase extends Container {
19
19
  protected animationSpeedMultiplier: number;
20
20
  private endOfMultiplierAnimationPromise;
21
21
  protected endOfSymbolAnimationPromise: ((value: void | PromiseLike<void>) => void) | undefined;
22
- private popSymbolAnimationPromise;
22
+ protected popSymbolAnimationPromise: ((value: void | PromiseLike<void>) => void) | undefined;
23
23
  protected abstract paytableIgnoredSymbols: SymbolId[];
24
24
  private _id;
25
25
  protected constructor(parent: Container, symbolId: SymbolId, multiplierSpineName?: Nullable<string>);
@@ -62,7 +62,7 @@ export declare abstract class AbstractSymbolsColumn extends Container implements
62
62
  getSymbolAtPosition(position: number): AbstractSymbolBase;
63
63
  findSymbols(symbolId: SymbolId): Array<AbstractSymbolBase>;
64
64
  playSymbolAtPosition(position: number, playSymbol: boolean, multiplier?: number, suffix?: string): Promise<void>;
65
- handleMultipleSymbolDropping(transformations: DropTransformationDetails[], skipAnimation?: boolean, isStandalone?: boolean): Promise<void>;
65
+ handleMultipleSymbolDropping(transformations: DropTransformationDetails[], skipAnimation?: boolean, isStandalone?: boolean, allowSoundInSymbolsColumn?: boolean): Promise<void>;
66
66
  private changePhase;
67
67
  private moveToTop;
68
68
  protected shouldPlaySpecialRollStopSound(): boolean;
@@ -203,7 +203,7 @@ export class AbstractSymbolsColumn extends Container {
203
203
  }
204
204
  symbolToPlay.switchSymbolBaseDisplayedObject("sprite");
205
205
  }
206
- async handleMultipleSymbolDropping(transformations, skipAnimation = false, isStandalone = false) {
206
+ async handleMultipleSymbolDropping(transformations, skipAnimation = false, isStandalone = false, allowSoundInSymbolsColumn = true) {
207
207
  this.changePhase(Phase.DROPPING);
208
208
  const symbols = this.getSymbolsSortedByYPosition();
209
209
  const height = RainMan.config.numberOfRows;
@@ -215,7 +215,8 @@ export class AbstractSymbolsColumn extends Container {
215
215
  droppableSymbolsInColumns.calculateSymbolsMovementInTransformation();
216
216
  if (!skipAnimation)
217
217
  await droppableSymbolsInColumns.playAnimations();
218
- SoundManager.play(isStandalone ? SoundTracks.standaloneBoom : SoundTracks.boom);
218
+ if (allowSoundInSymbolsColumn)
219
+ SoundManager.play(isStandalone ? SoundTracks.standaloneBoom : SoundTracks.boom);
219
220
  await droppableSymbolsInColumns.destroyAnimations(isStandalone);
220
221
  droppableSymbolsInColumns.moveDestroyedSymbolsToTop(this.tileHeight);
221
222
  droppableSymbolsInColumns.swapDestroyedSymbols();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixi-rainman-game-engine",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
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",