@betorigami/games 3.4.10 → 3.4.12

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.
@@ -52,6 +52,7 @@ export declare class BlackjackGame extends GameComponent {
52
52
  setSideBetResults(value: SideBetResults | null): void;
53
53
  revertToStandardModeIfNoSideBets(): void;
54
54
  finishRound(betData: BetResult): Promise<void>;
55
+ private lockOutOfSync;
55
56
  executeNextAction(type: BlackjackActionType): Promise<BetResult | null>;
56
57
  blackjackPlay(): Promise<void>;
57
58
  protected executeAutobet(_autobetSettings: AutobetSettingsWithId, _currentBetAmount: string): Promise<GameBetResult>;
@@ -1,4 +1,5 @@
1
1
  import { AutobetToggleEvent, AutobetSettingsWithId, GameComponent, GameBetResult } from '@betorigami/game-ui-shared';
2
+ import { IMinesApi } from './mines.api';
2
3
  import { MinesState } from './mines.constants';
3
4
  export declare class MinesGame extends GameComponent {
4
5
  private minesCount;
@@ -15,13 +16,16 @@ export declare class MinesGame extends GameComponent {
15
16
  get isToggleDisabled(): boolean;
16
17
  get areInputsDisabled(): boolean;
17
18
  get isGameActive(): boolean;
18
- private readonly getMinesApi;
19
+ private readonly _getMinesApi;
20
+ getMinesApi(): IMinesApi;
19
21
  get minesState(): MinesState | null;
20
22
  private gameOutcomeFromMinesOutcome;
21
23
  private deriveManualControlValues;
22
24
  private playTileSound;
23
25
  private gemPitchFromHits;
24
26
  private playGemReveal;
27
+ private lockOutOfSync;
28
+ private handleGameplayFailure;
25
29
  getMinesActiveBet(): Promise<void>;
26
30
  firstUpdated(changedProperties: Map<string | number | symbol, unknown>): Promise<void>;
27
31
  protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
@@ -16,6 +16,7 @@ export declare class PlinkoGame extends GameComponent {
16
16
  private ballsInFlight;
17
17
  private lastSubBassTime;
18
18
  private pendingResultsByBetId;
19
+ private balanceLedger;
19
20
  private betQueue;
20
21
  private _plinkoManualEl?;
21
22
  private _plinkoAutoEl?;
@@ -0,0 +1,16 @@
1
+ import { default as Big } from 'big.js';
2
+ export interface DisplayedBalance {
3
+ read: () => Big;
4
+ write: (balance: Big) => void;
5
+ }
6
+ export declare class PlinkoBalanceLedger {
7
+ private readonly displayedBalance;
8
+ private shortfall;
9
+ constructor(displayedBalance: DisplayedBalance);
10
+ placeBet<T extends {
11
+ success: boolean;
12
+ }>(stake: string | Big, request: () => Promise<T>): Promise<T>;
13
+ creditPayout(payout: string | Big): void;
14
+ private debitBet;
15
+ private refundBet;
16
+ }