Пример #1
0
        public static BuffUpdateCountGroupEntry ReadBuffInGroupUpdateCount(this ByteReader reader)
        {
            var data = new BuffUpdateCountGroupEntry();

            data.OwnerNetID  = reader.ReadUInt32();
            data.CasterNetID = reader.ReadUInt32();
            data.BuffSlot    = reader.ReadByte();
            data.Count       = reader.ReadByte();
            return(data);
        }
Пример #2
0
 public static void WriteBuffInGroupUpdateCount(this ByteWriter writer, BuffUpdateCountGroupEntry data)
 {
     if (data == null)
     {
         data = new BuffUpdateCountGroupEntry();
     }
     writer.WriteUInt32(data.OwnerNetID);
     writer.WriteUInt32(data.CasterNetID);
     writer.WriteByte(data.BuffSlot);
     writer.WriteByte(data.Count);
 }