@slot-engine/core 0.2.5 → 0.2.6
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/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -480,7 +480,7 @@ declare class WinType {
|
|
|
480
480
|
/**
|
|
481
481
|
* Custom post-processing of wins, e.g. for handling multipliers.
|
|
482
482
|
*/
|
|
483
|
-
postProcess(func:
|
|
483
|
+
postProcess(func: WinPostProcessFn<typeof this.winCombinations>): this;
|
|
484
484
|
/**
|
|
485
485
|
* Returns the total payout and detailed win combinations.
|
|
486
486
|
*/
|
|
@@ -526,7 +526,7 @@ type WinCombination = {
|
|
|
526
526
|
posIndex: number;
|
|
527
527
|
}>;
|
|
528
528
|
};
|
|
529
|
-
type
|
|
529
|
+
type WinPostProcessFn<TWinCombs extends WinCombination[]> = (wins: TWinCombs, ctx: GameContext) => {
|
|
530
530
|
winCombinations: TWinCombs;
|
|
531
531
|
};
|
|
532
532
|
type WildSymbol = GameSymbol | Record<string, any>;
|
|
@@ -1910,4 +1910,4 @@ interface StandaloneBoardOptions {
|
|
|
1910
1910
|
padSymbols: number;
|
|
1911
1911
|
}
|
|
1912
1912
|
|
|
1913
|
-
export { type AnyGameModes, type AnySymbols, type AnyUserData, ClusterWinType, type GameContext, type GameHooks, GameMode, GameSymbol, GeneratedReelSet, type InferGameType, LinesWinType, type LookupTable, type LookupTableSegmented, ManywaysWinType, OptimizationConditions, OptimizationParameters, OptimizationScaling, type PayoutStatistics, RandomNumberGenerator, type RecordItem, type Reels, ResultSet, SPIN_TYPE, type SimulationSummary, type SlotGameType as SlotGame, type SpinType, StandaloneBoard, StaticReelSet, type Statistics, type WinCombination, type WrittenBook, createSlotGame, defineGameModes, defineSymbols, defineUserState, parseLookupTable, parseLookupTableSegmented };
|
|
1913
|
+
export { type AnyGameModes, type AnySymbols, type AnyUserData, ClusterWinType, type GameContext, type GameHooks, GameMode, GameSymbol, GeneratedReelSet, type InferGameType, LinesWinType, type LookupTable, type LookupTableSegmented, ManywaysWinType, OptimizationConditions, OptimizationParameters, OptimizationScaling, type PayoutStatistics, RandomNumberGenerator, type RecordItem, type Reels, ResultSet, SPIN_TYPE, type SimulationSummary, type SlotGameType as SlotGame, type SpinType, StandaloneBoard, StaticReelSet, type Statistics, type WinCombination, type WinPostProcessFn, WinType, type WinTypeOpts, type WrittenBook, createSlotGame, defineGameModes, defineSymbols, defineUserState, parseLookupTable, parseLookupTableSegmented };
|
package/dist/index.d.ts
CHANGED
|
@@ -480,7 +480,7 @@ declare class WinType {
|
|
|
480
480
|
/**
|
|
481
481
|
* Custom post-processing of wins, e.g. for handling multipliers.
|
|
482
482
|
*/
|
|
483
|
-
postProcess(func:
|
|
483
|
+
postProcess(func: WinPostProcessFn<typeof this.winCombinations>): this;
|
|
484
484
|
/**
|
|
485
485
|
* Returns the total payout and detailed win combinations.
|
|
486
486
|
*/
|
|
@@ -526,7 +526,7 @@ type WinCombination = {
|
|
|
526
526
|
posIndex: number;
|
|
527
527
|
}>;
|
|
528
528
|
};
|
|
529
|
-
type
|
|
529
|
+
type WinPostProcessFn<TWinCombs extends WinCombination[]> = (wins: TWinCombs, ctx: GameContext) => {
|
|
530
530
|
winCombinations: TWinCombs;
|
|
531
531
|
};
|
|
532
532
|
type WildSymbol = GameSymbol | Record<string, any>;
|
|
@@ -1910,4 +1910,4 @@ interface StandaloneBoardOptions {
|
|
|
1910
1910
|
padSymbols: number;
|
|
1911
1911
|
}
|
|
1912
1912
|
|
|
1913
|
-
export { type AnyGameModes, type AnySymbols, type AnyUserData, ClusterWinType, type GameContext, type GameHooks, GameMode, GameSymbol, GeneratedReelSet, type InferGameType, LinesWinType, type LookupTable, type LookupTableSegmented, ManywaysWinType, OptimizationConditions, OptimizationParameters, OptimizationScaling, type PayoutStatistics, RandomNumberGenerator, type RecordItem, type Reels, ResultSet, SPIN_TYPE, type SimulationSummary, type SlotGameType as SlotGame, type SpinType, StandaloneBoard, StaticReelSet, type Statistics, type WinCombination, type WrittenBook, createSlotGame, defineGameModes, defineSymbols, defineUserState, parseLookupTable, parseLookupTableSegmented };
|
|
1913
|
+
export { type AnyGameModes, type AnySymbols, type AnyUserData, ClusterWinType, type GameContext, type GameHooks, GameMode, GameSymbol, GeneratedReelSet, type InferGameType, LinesWinType, type LookupTable, type LookupTableSegmented, ManywaysWinType, OptimizationConditions, OptimizationParameters, OptimizationScaling, type PayoutStatistics, RandomNumberGenerator, type RecordItem, type Reels, ResultSet, SPIN_TYPE, type SimulationSummary, type SlotGameType as SlotGame, type SpinType, StandaloneBoard, StaticReelSet, type Statistics, type WinCombination, type WinPostProcessFn, WinType, type WinTypeOpts, type WrittenBook, createSlotGame, defineGameModes, defineSymbols, defineUserState, parseLookupTable, parseLookupTableSegmented };
|
package/dist/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __export(index_exports, {
|
|
|
44
44
|
SPIN_TYPE: () => SPIN_TYPE,
|
|
45
45
|
StandaloneBoard: () => StandaloneBoard,
|
|
46
46
|
StaticReelSet: () => StaticReelSet,
|
|
47
|
+
WinType: () => WinType,
|
|
47
48
|
createSlotGame: () => createSlotGame,
|
|
48
49
|
defineGameModes: () => defineGameModes,
|
|
49
50
|
defineSymbols: () => defineSymbols,
|
|
@@ -4955,6 +4956,7 @@ var StandaloneBoard = class {
|
|
|
4955
4956
|
SPIN_TYPE,
|
|
4956
4957
|
StandaloneBoard,
|
|
4957
4958
|
StaticReelSet,
|
|
4959
|
+
WinType,
|
|
4958
4960
|
createSlotGame,
|
|
4959
4961
|
defineGameModes,
|
|
4960
4962
|
defineSymbols,
|