@betorigami/games 3.4.13 → 3.4.15
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.
|
@@ -10,7 +10,7 @@ export declare class MinesGame extends GameComponent {
|
|
|
10
10
|
private isLoading;
|
|
11
11
|
private isSelectingRandomTile;
|
|
12
12
|
private isCheckingForSession;
|
|
13
|
-
private
|
|
13
|
+
private readonly reveals;
|
|
14
14
|
static styles: import('lit').CSSResult[];
|
|
15
15
|
private _minesManualEl?;
|
|
16
16
|
private _minesAutoEl?;
|
|
@@ -37,6 +37,9 @@ export declare class MinesGame extends GameComponent {
|
|
|
37
37
|
minesManualStart(): Promise<void>;
|
|
38
38
|
minesChooseRandomTile(): Promise<void>;
|
|
39
39
|
minesNext(selectedTile: number): Promise<void>;
|
|
40
|
+
private isRoundOpen;
|
|
41
|
+
private canReveal;
|
|
42
|
+
private applyReveal;
|
|
40
43
|
minesCashout(): Promise<void>;
|
|
41
44
|
onManualOrAutoChange(): void;
|
|
42
45
|
onMinesCountChange(): void;
|
|
@@ -9,7 +9,8 @@ export declare class MinesGrid extends OrigamiElement {
|
|
|
9
9
|
minesState: Partial<MinesState> | null;
|
|
10
10
|
hasWon: boolean;
|
|
11
11
|
hitBomb: boolean;
|
|
12
|
-
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
loadingTiles: readonly number[];
|
|
13
14
|
private _getTileInfo;
|
|
14
15
|
private calculateTileState;
|
|
15
16
|
render(): import('lit').TemplateResult<1>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
export declare class PendingRevealsController implements ReactiveController {
|
|
3
|
+
private readonly host;
|
|
4
|
+
private pending;
|
|
5
|
+
private tiles;
|
|
6
|
+
constructor(host: ReactiveControllerHost);
|
|
7
|
+
hostConnected(): void;
|
|
8
|
+
get pendingTiles(): readonly number[];
|
|
9
|
+
get hasPending(): boolean;
|
|
10
|
+
isPending(tile: number): boolean;
|
|
11
|
+
track<T>(tile: number, request: Promise<T>, apply: (result: T) => void): Promise<T>;
|
|
12
|
+
allApplied(): Promise<void>;
|
|
13
|
+
private setPending;
|
|
14
|
+
}
|