public void Write(BinaryWriter writer) { writer.Write(guids.Count); foreach(ulong guid in guids) { writer.WritePackGuid(guid); } }
public void Write(BinaryWriter writer) { writer.WritePackGuid(obj.Guid); obj.WriteCreateBlock(self, writer); dto.Write(writer); }
public void Write(BinaryWriter w) { w.WritePackGuid(Guid); w.Write(X); w.Write(Y); w.Write(Z); w.Write(O); w.Write(Time); w.Write(Seat); }
public void WriteCreateBlock(bool self, BinaryWriter writer) { writer.Write((byte)TypeId); writer.Write((ushort)(!self ? UpdateFlag : UpdateFlag | UpdateFlags.Self)); WriteCreateBlock(writer); if(UpdateFlag.HasFlag(UpdateFlags.LowGuid)) { writer.Write((uint)0x00); } if(UpdateFlag.HasFlag(UpdateFlags.HighGuid)) { writer.Write((uint)0x00); } if(UpdateFlag.HasFlag(UpdateFlags.TargetGuid)) { writer.WritePackGuid(0x00); } if(UpdateFlag.HasFlag(UpdateFlags.Transport)) { writer.Write((uint)0x00); } }