* 创建增量序列化的基础快照 * * 在需要进行增量序列化前,先调用此方法创建基础快照 * * @param options 序列化选项 * * @example * ```typescript * // 创建基础快照 * scene.createIncrementalSnapshot(); * * // 进行一些修改... * entity.addComponent(new PositionComponent(100, 200)); * * // 计算增
(options?: IncrementalSerializationOptions)
| 1378 | * ``` |
| 1379 | */ |
| 1380 | public createIncrementalSnapshot(options?: IncrementalSerializationOptions): void { |
| 1381 | this._incrementalBaseSnapshot = IncrementalSerializer.createSnapshot(this, options); |
| 1382 | } |
| 1383 | |
| 1384 | /** |
| 1385 | * 增量序列化场景 |
no test coverage detected