narraleaf-react 0.0.1-beta.10 → 0.0.1-beta.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.
- package/README.md +2 -4
- package/dist/game/nlcore/action/actionable.d.ts +8 -3
- package/dist/game/nlcore/action/chain.d.ts +24 -0
- package/dist/game/nlcore/action/constructable.d.ts +17 -9
- package/dist/game/nlcore/common/Utils.d.ts +1 -1
- package/dist/game/nlcore/elements/condition.d.ts +7 -6
- package/dist/game/nlcore/elements/control.d.ts +15 -12
- package/dist/game/nlcore/elements/image.d.ts +20 -18
- package/dist/game/nlcore/elements/menu.d.ts +11 -8
- package/dist/game/nlcore/elements/scene.d.ts +26 -21
- package/dist/game/nlcore/elements/script.d.ts +2 -2
- package/dist/game/nlcore/elements/sound.d.ts +11 -7
- package/dist/game/nlcore/elements/story.d.ts +2 -1
- package/dist/game/nlcore/elements/text.d.ts +14 -13
- package/dist/game/nlcore/game.d.ts +8 -1
- package/dist/main.js +6 -26114
- package/dist/util/data.d.ts +4 -0
- package/package.json +82 -80
- package/dist/main.js.map +0 -1
|
@@ -32,6 +32,7 @@ export declare class Game {
|
|
|
32
32
|
};
|
|
33
33
|
static DefaultConfig: GameConfig;
|
|
34
34
|
static GameSettingsNamespace: typeof GameSettingsNamespace;
|
|
35
|
+
static getIdManager(): IdManager;
|
|
35
36
|
readonly config: Readonly<GameConfig>;
|
|
36
37
|
liveGame: LiveGame | null;
|
|
37
38
|
/**
|
|
@@ -39,7 +40,6 @@ export declare class Game {
|
|
|
39
40
|
* @param config - Game configuration
|
|
40
41
|
*/
|
|
41
42
|
constructor(config: DeepPartial<GameConfig>);
|
|
42
|
-
static getIdManager(): IdManager;
|
|
43
43
|
useComponent<T extends keyof ComponentsTypes>(key: T, components: ComponentsTypes[T]): this;
|
|
44
44
|
getLiveGame(): LiveGame;
|
|
45
45
|
private createLiveGame;
|
|
@@ -53,6 +53,9 @@ export declare class LiveGame {
|
|
|
53
53
|
};
|
|
54
54
|
game: Game;
|
|
55
55
|
storable: Storable;
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated
|
|
58
|
+
*/
|
|
56
59
|
currentSceneNumber: number | null;
|
|
57
60
|
currentSavedGame: SavedGame | null;
|
|
58
61
|
story: Story | null;
|
|
@@ -73,6 +76,8 @@ export declare class LiveGame {
|
|
|
73
76
|
* Load a saved game
|
|
74
77
|
*
|
|
75
78
|
* Note: Different versions of the game won't be able to load each other's saved games
|
|
79
|
+
*
|
|
80
|
+
* @internal - DO NOT USE IT, it's not ready yet
|
|
76
81
|
*/
|
|
77
82
|
deserialize(savedGame: SavedGame, { gameState }: {
|
|
78
83
|
gameState: GameState;
|
|
@@ -83,6 +88,8 @@ export declare class LiveGame {
|
|
|
83
88
|
* You can use this to save the game state to a file or a database
|
|
84
89
|
*
|
|
85
90
|
* Note: Different versions of the game won't be able to load each other's saved games
|
|
91
|
+
*
|
|
92
|
+
* @internal - DO NOT USE IT, it's not ready yet
|
|
86
93
|
*/
|
|
87
94
|
serialize({ gameState }: {
|
|
88
95
|
gameState: GameState;
|