Пример #1
0
 public void Write(BinaryWriter writer)
 {
     writer.Write(guids.Count);
     foreach(ulong guid in guids) {
         writer.WritePackGuid(guid);
     }
 }
Пример #2
0
        public void Write(BinaryWriter writer)
        {
            writer.WritePackGuid(obj.Guid);

            obj.WriteCreateBlock(self, writer);

            dto.Write(writer);
        }
Пример #3
0
 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);
 }
Пример #4
0
 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);
     }
 }