narraleaf-react 0.0.1-beta.11 → 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.
@@ -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;