@chronodivide/game-api 0.71.0 → 0.73.0-rc.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 +4 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|