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

Method createIncrementalSnapshot

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

* 创建增量序列化的基础快照 * * 在需要进行增量序列化前,先调用此方法创建基础快照 * * @param options 序列化选项 * * @example * ```typescript * // 创建基础快照 * scene.createIncrementalSnapshot(); * * // 进行一些修改... * entity.addComponent(new PositionComponent(100, 200)); * * // 计算增

(options?: IncrementalSerializationOptions)

Source from the content-addressed store, hash-verified

1378 * ```
1379 */
1380 public createIncrementalSnapshot(options?: IncrementalSerializationOptions): void {
1381 this._incrementalBaseSnapshot = IncrementalSerializer.createSnapshot(this, options);
1382 }
1383
1384 /**
1385 * 增量序列化场景

Callers 4

setupMethod · 0.80
bindEventsMethod · 0.80

Calls 1

createSnapshotMethod · 0.80

Tested by

no test coverage detected