@betorigami/games 2.9.0 → 2.9.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 +34 -3
- package/dist/index.mjs +350 -344
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7389,18 +7389,49 @@ declare abstract class GameComponent extends OrigamiElement {
|
|
|
7389
7389
|
protected autobetStopping: boolean;
|
|
7390
7390
|
static styles: import("lit").CSSResult[];
|
|
7391
7391
|
protected onBetAmountChange: (_oldBetAmount: string, _newBetAmount: string) => void;
|
|
7392
|
+
private deferredBetReset;
|
|
7392
7393
|
private gameConsumer;
|
|
7393
7394
|
get gameData(): gameContextType;
|
|
7394
7395
|
get isDemoMode(): boolean;
|
|
7395
7396
|
get isToggleDisabled(): boolean;
|
|
7396
7397
|
get areInputsDisabled(): boolean;
|
|
7398
|
+
/**
|
|
7399
|
+
* Instant bets settle in a single step, with no reveal animation to cover the wait on the provider.
|
|
7400
|
+
* Read live rather than pinned for the round: the animators decide the same way, several of them
|
|
7401
|
+
* straight from the context, and a reveal they skip is one the round would wait on for good.
|
|
7402
|
+
*/
|
|
7403
|
+
protected get isInstantBet(): boolean;
|
|
7397
7404
|
protected getDelay(normalDelay: number): number;
|
|
7398
7405
|
protected forceUIUpdate(): Promise<void>;
|
|
7399
7406
|
protected executeInstantOrAnimated<T>(instantOperation: () => Promise<T> | T, animatedOperation: () => Promise<T> | T): Promise<T>;
|
|
7400
7407
|
/**
|
|
7401
|
-
*
|
|
7408
|
+
* Clears the previous round so the next one starts from a blank board. An instant bet has no reveal
|
|
7409
|
+
* animation to fill the wait on the provider, so the reset is held back until the response lands and
|
|
7410
|
+
* the previous result stays up instead of the board sitting empty for the length of the request.
|
|
7411
|
+
*/
|
|
7412
|
+
protected resetForNextBet(reset: () => void): void;
|
|
7413
|
+
/**
|
|
7414
|
+
* Places a bet, applying any reset held back by resetForNextBet once the provider has responded and
|
|
7415
|
+
* before the round's result is applied.
|
|
7416
|
+
*/
|
|
7417
|
+
protected placeBet<T>(request: () => Promise<T>): Promise<T>;
|
|
7418
|
+
/**
|
|
7419
|
+
* Drops the stake from the displayed balance so it moves as the reveal animation starts. An instant
|
|
7420
|
+
* bet settles in one step, so the balance is left alone rather than dipping for however long the
|
|
7421
|
+
* provider takes to respond and then jumping to the settled value.
|
|
7422
|
+
*/
|
|
7423
|
+
protected preDeductStake(balanceBeforeBet: Big$1, stake: Big$1.BigSource): void;
|
|
7424
|
+
/**
|
|
7425
|
+
* Lets an animated reveal settle before the result counts as shown, since the outcome lands a beat
|
|
7426
|
+
* after the cards or tiles come to rest and a win takes a beat longer again to register.
|
|
7427
|
+
*/
|
|
7428
|
+
protected awaitRevealSettle(hasWon: boolean): Promise<void>;
|
|
7429
|
+
/**
|
|
7430
|
+
* Holds the round's result on screen long enough to be read before the next round replaces it. The
|
|
7431
|
+
* hold runs from the point the result is painted rather than from the start of the round, so the wait
|
|
7432
|
+
* on the provider does not eat into it the way a round wide budget does once latency is real.
|
|
7402
7433
|
*/
|
|
7403
|
-
protected
|
|
7434
|
+
protected holdResultDisplay(): Promise<void>;
|
|
7404
7435
|
disconnectedCallback(): void;
|
|
7405
7436
|
toggleAutobet(event: AutobetToggleEvent): Promise<void>;
|
|
7406
7437
|
protected abstract executeAutobet(autobetSettings: AutobetSettingsWithId, currentBetAmount: string): Promise<GameBetResult>;
|
|
@@ -7748,6 +7779,7 @@ export declare class LimboGame extends GameComponent {
|
|
|
7748
7779
|
limboPlay(): Promise<void>;
|
|
7749
7780
|
private handleBetExecution;
|
|
7750
7781
|
private static readonly ANIMATION_TIMEOUT_MS;
|
|
7782
|
+
private awaitRevealAnimation;
|
|
7751
7783
|
private waitForAnimationComplete;
|
|
7752
7784
|
private isSpacebarDisabled;
|
|
7753
7785
|
private handleSpacebar;
|
|
@@ -8091,7 +8123,6 @@ export declare class RouletteGame extends ChipTableGameComponent {
|
|
|
8091
8123
|
private addToHistory;
|
|
8092
8124
|
private extractHitNumberFromActions;
|
|
8093
8125
|
private applyBetResult;
|
|
8094
|
-
private waitForAutobetDisplay;
|
|
8095
8126
|
private handleBetExecution;
|
|
8096
8127
|
private handleBallLand;
|
|
8097
8128
|
roulettePlay(): Promise<void>;
|