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.
- package/dist/application/SpinLogic/SpinLogic.d.ts +1 -0
- package/dist/application/SpinLogic/SpinLogic.js +4 -0
- package/dist/components/frame/AbstractColumnsContainer.d.ts +1 -0
- package/dist/components/frame/AbstractColumnsContainer.js +5 -0
- package/dist/winComponents/index.d.ts +1 -0
- package/dist/winComponents/index.js +1 -0
- package/package.json +1 -1
|
@@ -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());
|
package/package.json
CHANGED