@betorigami/games 1.3.0 → 1.3.2
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.ts +13 -21
- package/dist/index.mjs +759 -763
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3635,11 +3635,10 @@ declare class SoundController {
|
|
|
3635
3635
|
private buffer;
|
|
3636
3636
|
private spriteMap;
|
|
3637
3637
|
constructor(host: GameHost$2);
|
|
3638
|
-
preload(_file: string): void;
|
|
3639
3638
|
play(soundKey: BaseSound, muted?: boolean, pitch?: number, volume?: number, onEndCallback?: () => void): Promise<AudioBufferSourceNode | void>;
|
|
3640
3639
|
}
|
|
3641
3640
|
export type gameContextType = {
|
|
3642
|
-
|
|
3641
|
+
betAmount: string;
|
|
3643
3642
|
updateBetAmount: (newAmount: Big$1) => void;
|
|
3644
3643
|
updateBalance: (newAmount: Big$1) => void;
|
|
3645
3644
|
currency: Currency;
|
|
@@ -3782,15 +3781,6 @@ export type BetMode = "Manual" | "Auto";
|
|
|
3782
3781
|
export type AutobetToggleEvent = CustomEvent<AutobetValues & {
|
|
3783
3782
|
numberOfBets: string;
|
|
3784
3783
|
}>;
|
|
3785
|
-
export type SliderChangeEvent = CustomEvent<{
|
|
3786
|
-
value: number;
|
|
3787
|
-
}>;
|
|
3788
|
-
export type DiceMultiplierChangeEvent = CustomEvent<{
|
|
3789
|
-
multiplier: string;
|
|
3790
|
-
}>;
|
|
3791
|
-
export type DiceWinChanceChangeEvent = CustomEvent<{
|
|
3792
|
-
winChance: string;
|
|
3793
|
-
}>;
|
|
3794
3784
|
export type LimboMultiplierChangeEvent = CustomEvent<{
|
|
3795
3785
|
multiplier: string;
|
|
3796
3786
|
}>;
|
|
@@ -3841,7 +3831,6 @@ declare abstract class GameComponent extends OrigamiElement {
|
|
|
3841
3831
|
protected forceUIUpdate(): Promise<void>;
|
|
3842
3832
|
protected executeInstantOrAnimated<T>(instantOperation: () => Promise<T> | T, animatedOperation: () => Promise<T> | T): Promise<T>;
|
|
3843
3833
|
protected ensureMinimumDisplayTime(hasWin?: boolean, winDisplayTime?: number, lossDisplayTime?: number): Promise<void>;
|
|
3844
|
-
firstUpdated(): void;
|
|
3845
3834
|
disconnectedCallback(): void;
|
|
3846
3835
|
toggleAutobet(event: AutobetToggleEvent): Promise<void>;
|
|
3847
3836
|
protected abstract executeAutobet(_autobetSettings: AutobetSettings, _currentBetAmount: string): Promise<GameBetResult>;
|
|
@@ -3864,6 +3853,7 @@ declare class DiceApi {
|
|
|
3864
3853
|
private baseUrl;
|
|
3865
3854
|
static totalDiceValue: number;
|
|
3866
3855
|
static minWinChance: number;
|
|
3856
|
+
static inputValuePrecision: number;
|
|
3867
3857
|
static getMaxWinChance(edge: number): number;
|
|
3868
3858
|
constructor(authToken: string, baseUrl: string);
|
|
3869
3859
|
startBet(data: DiceStartArgs): Promise<{
|
|
@@ -3877,9 +3867,10 @@ declare class DiceApi {
|
|
|
3877
3867
|
}>;
|
|
3878
3868
|
static getMultiplier(edge: number, selectedValue: number, diceDirection: DiceDirection): string;
|
|
3879
3869
|
static getWinChance(selectedValue: number, diceDirection: DiceDirection): string;
|
|
3880
|
-
static getSelectedValueFromMultiplier(edge: number, multiplier:
|
|
3881
|
-
static getSelectedValueFromWinChance(winChancePercentage:
|
|
3870
|
+
static getSelectedValueFromMultiplier(edge: number, multiplier: string, diceDirection: DiceDirection): number;
|
|
3871
|
+
static getSelectedValueFromWinChance(winChancePercentage: string, diceDirection: DiceDirection): number;
|
|
3882
3872
|
static getSelectedValueFromRollOver(selectedValue: number): number;
|
|
3873
|
+
static getWinChanceFromSelectedValue(selectedValue: number, diceDirection: DiceDirection): string;
|
|
3883
3874
|
static getMinMultiplier(edge: number): string;
|
|
3884
3875
|
static getMaxMultiplier(edge: number): string;
|
|
3885
3876
|
static isValidMultiplier(edge: number, multiplier: string): boolean;
|
|
@@ -3903,11 +3894,12 @@ export declare class DiceGame extends GameComponent {
|
|
|
3903
3894
|
private isWin;
|
|
3904
3895
|
private resultValue;
|
|
3905
3896
|
private history;
|
|
3897
|
+
private _multiplierInputValid;
|
|
3898
|
+
private _winChanceInputValid;
|
|
3906
3899
|
private _diceManualEl?;
|
|
3907
3900
|
private _diceAutoEl?;
|
|
3908
3901
|
get isToggleDisabled(): boolean;
|
|
3909
3902
|
get areInputsDisabled(): boolean;
|
|
3910
|
-
firstUpdated(): void;
|
|
3911
3903
|
private isSpacebarDisabled;
|
|
3912
3904
|
private handleSpacebar;
|
|
3913
3905
|
diceRollOverToggle: () => void;
|
|
@@ -3919,9 +3911,6 @@ export declare class DiceGame extends GameComponent {
|
|
|
3919
3911
|
private handleBetExecution;
|
|
3920
3912
|
addToHistory(multiplier: number, won: boolean, id: string): void;
|
|
3921
3913
|
protected executeAutobet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
|
|
3922
|
-
sliderInputChange: (e: SliderChangeEvent) => void;
|
|
3923
|
-
diceMultiplierChange: (e: DiceMultiplierChangeEvent) => void;
|
|
3924
|
-
diceWinChanceChange: (e: DiceWinChanceChangeEvent) => void;
|
|
3925
3914
|
render(): import("lit-html").TemplateResult<1>;
|
|
3926
3915
|
}
|
|
3927
3916
|
export type KenoStartArgs = {
|
|
@@ -3994,7 +3983,7 @@ export declare class KenoGame extends GameComponent {
|
|
|
3994
3983
|
private handleAutoPick;
|
|
3995
3984
|
private handleClearTable;
|
|
3996
3985
|
constructor();
|
|
3997
|
-
firstUpdated(): Promise<void>;
|
|
3986
|
+
firstUpdated(changedProperties: Map<string | number | symbol, unknown>): Promise<void>;
|
|
3998
3987
|
}
|
|
3999
3988
|
export type LimboStartArgs = {
|
|
4000
3989
|
language: Language;
|
|
@@ -4007,6 +3996,8 @@ export type LimboStartArgs = {
|
|
|
4007
3996
|
declare class LimboApi {
|
|
4008
3997
|
private authToken;
|
|
4009
3998
|
private baseUrl;
|
|
3999
|
+
static winChancePrecision: number;
|
|
4000
|
+
static multiplierPrecision: number;
|
|
4010
4001
|
static minMultiplier: number;
|
|
4011
4002
|
static maxMultiplier: number;
|
|
4012
4003
|
static getMinWinChance(edge: number): string;
|
|
@@ -4023,7 +4014,6 @@ declare class LimboApi {
|
|
|
4023
4014
|
}>;
|
|
4024
4015
|
static calculateMultiplier(winChance: number, edge: number): string;
|
|
4025
4016
|
static calculateWinChance(targetMultiplier: number, edge: number): string;
|
|
4026
|
-
static calculateProfitOnWin(amount: string, targetMultiplier: number): string;
|
|
4027
4017
|
static isValidMultiplier(multiplier: string): boolean;
|
|
4028
4018
|
static isValidWinChance(winChance: string, edge: number): boolean;
|
|
4029
4019
|
}
|
|
@@ -4045,6 +4035,8 @@ export declare class LimboGame extends GameComponent {
|
|
|
4045
4035
|
private history;
|
|
4046
4036
|
private betTargetMultiplier;
|
|
4047
4037
|
private betId;
|
|
4038
|
+
private _multiplierInputValid;
|
|
4039
|
+
private _winChanceInputValid;
|
|
4048
4040
|
private _limboManualEl?;
|
|
4049
4041
|
private _limboAutoEl?;
|
|
4050
4042
|
get isToggleDisabled(): boolean;
|
|
@@ -4209,7 +4201,7 @@ export declare class MinesGame extends GameComponent {
|
|
|
4209
4201
|
get minesApi(): MinesApi | MockMinesApi;
|
|
4210
4202
|
addToHistory(multiplier: number, won: boolean, id: string): void;
|
|
4211
4203
|
getMinesActiveBet(): Promise<void>;
|
|
4212
|
-
firstUpdated(): Promise<void>;
|
|
4204
|
+
firstUpdated(changedProperties: Map<string | number | symbol, unknown>): Promise<void>;
|
|
4213
4205
|
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
4214
4206
|
get getMinesState(): MinesState | null;
|
|
4215
4207
|
protected executeAutobet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
|