public void Deserialize(MemoryEndianBinaryReader reader) { FieldMark fm = new FieldMark(1); reader.Read(fm.GetData(), 0, fm.GetData().Length); if (fm.ReadMark()) { entityId = reader.ReadUInt32(); } if (fm.ReadMark()) { timestamp = reader.ReadUInt32(); } if (fm.ReadMark()) { idleTime = reader.ReadUInt16(); } if (fm.ReadMark()) { int __1__ = SerializationUtil.ReadVariableLength(reader); fields = new UInt32[__1__]; for (int i = 0; i < __1__; i++) { fields[i] = reader.ReadUInt32(); } } if (fm.ReadMark()) { int __2__ = SerializationUtil.ReadVariableLength(reader); values = new Single[__2__]; for (int i = 0; i < __2__; i++) { values[i] = reader.ReadSingle(); } } }
public void Deserialize(MemoryEndianBinaryReader reader) { FieldMark fm = new FieldMark(1); reader.Read(fm.GetData(), 0, fm.GetData().Length); if (fm.ReadMark()) { timestamp = reader.ReadUInt32(); } if (fm.ReadMark()) { int __0__ = SerializationUtil.ReadVariableLength(reader); items = new SyncItem[__0__]; for (int i = 0; i < items.Length; i++) { items[i] = new SyncItem(); items[i].Deserialize(reader); } } }