public void sync(Sync sync) { MemoryEndianBinaryWriter writer = Begin(); writer.WriteByte(3); sync.Serialize(writer); End(); }
public void onJoinArena(Int32 arenaId, Sync sync, Int32 entityId) { MemoryEndianBinaryWriter writer = Begin(); writer.WriteByte(2); writer.WriteInt32(arenaId); sync.Serialize(writer); writer.WriteInt32(entityId); End(); }