MCPcopy Create free account
hub / github.com/esengine/esengine / updateIncrementalSnapshot

Method updateIncrementalSnapshot

packages/core/src/ECS/Scene.ts:1474–1476  ·  view source on GitHub ↗

* 更新增量快照基准 * * 将当前场景状态设为新的增量序列化基准 * * @param options 序列化选项 * * @example * ```typescript * // 创建初始快照 * scene.createIncrementalSnapshot(); * * // 进行一些修改并序列化 * const incremental1 = scene.serializeIncremental(); * * // 更新基准,之后的增量将基于当前

(options?: IncrementalSerializationOptions)

Source from the content-addressed store, hash-verified

1472 * ```
1473 */
1474 public updateIncrementalSnapshot(options?: IncrementalSerializationOptions): void {
1475 this.createIncrementalSnapshot(options);
1476 }
1477
1478 /**
1479 * 清除增量快照

Callers 2

addToHistoryMethod · 0.80

Calls 1

Tested by

no test coverage detected