@chronodivide/game-api 0.72.0 → 0.73.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ # 0.73.0
4
+
5
+ - Update game engine version to 0.78
6
+ - Add `CreateOnlineOpts.debugStateDumps` and `GameInstanceApi.getDebugStateDump`
7
+
3
8
  # 0.72.0
4
9
 
5
10
  - Update game engine version to 0.77
package/dist/index.d.ts CHANGED
@@ -252,6 +252,8 @@ export declare interface CreateOnlineOpts extends CreateBaseOpts {
252
252
  agents: [Bot, ...Agent[]];
253
253
  /** If specified, process will not wait for player input before creating the game. */
254
254
  nonInteractive?: boolean;
255
+ /** If enabled, will record snapshots of the entire game state for debugging desyncs */
256
+ debugStateDumps?: boolean;
255
257
  /**
256
258
  * Called when the game is created.
257
259
  *
@@ -390,6 +392,11 @@ export declare class GameInstanceApi {
390
392
  * @returns - The path where the replay file was saved to.
391
393
  */
392
394
  saveReplay(targetDir?: string): string;
395
+ /**
396
+ * Returns a game state dump, for debugging desync errors.
397
+ * Only usable in online mode, when state dumps are enabled via game opts
398
+ */
399
+ getDebugStateDump(): object[] | undefined;
393
400
  dispose(): void;
394
401
  }
395
402