Skip to content

Home > @esengine/ecs-framework-monorepo > SyncVarSerializer

SyncVarSerializer class

SyncVar专用序列化器 针对SyncVar数据进行优化的序列化系统

Signature:

typescript
export declare class SyncVarSerializer

Constructors

Constructor

Modifiers

Description

(constructor)(config)

Constructs a new instance of the SyncVarSerializer class

Methods

Method

Modifiers

Description

clearCache()

清理缓存

createSyncMessage(batch, senderId)

创建网络消息

deserializeSyncBatch(data)

反序列化SyncVar批次数据

getCacheStats()

获取缓存统计

getConfig()

获取配置

parseSyncMessage(message)

解析网络消息

serializeSyncBatch(batch)

序列化SyncVar批次数据

updateConfig(newConfig)

更新配置

基于 MIT 许可证发布