示例#1
0
        public void Write(WorldPacket data)
        {
            data.WriteInt32(Id);
            data.WritePackedTime(CompletedDate);
            data.WriteInt32(Type);
            data.WriteInt32(Flags);

            for (byte i = 0; i < 2; i++)
            {
                data.WriteInt32(Data[i]);
            }

            data.WritePackedGuid(MemberGuid);
            data.WriteUInt32(MemberList.Count);

            foreach (ObjectGuid memberGuid in MemberList)
            {
                data.WritePackedGuid(memberGuid);
            }

            data.WriteBit(Item.HasValue);
            data.FlushBits();

            if (Item.HasValue)
            {
                Item.Value.Write(data);
            }
        }
示例#2
0
 public void Write(WorldPacket data)
 {
     data.WriteUInt32(Id);
     data.WritePackedTime(Date);
     data.WritePackedGuid(Owner);
     data.WriteUInt32(VirtualRealmAddress);
     data.WriteUInt32(NativeRealmAddress);
 }
示例#3
0
 public void Write(WorldPacket data)
 {
     data.WriteUInt32(Id);
     data.WriteUInt64(Quantity);
     data.WritePackedGuid(Player);
     data.WritePackedTime(Date);
     data.WriteUInt32(TimeFromStart);
     data.WriteUInt32(TimeFromCreate);
     data.WriteBits(Flags, 4);
     data.FlushBits();
 }
示例#4
0
        public void Write(WorldPacket data)
        {
            data.WriteUInt64(EventID);
            data.WriteUInt8((byte)EventType);
            data.WritePackedTime(Date);
            data.WriteUInt32((uint)Flags);
            data.WriteInt32(TextureID);
            data.WriteUInt64(EventClubID);
            data.WritePackedGuid(OwnerGuid);

            data.WriteBits(EventName.GetByteCount(), 8);
            data.FlushBits();
            data.WriteString(EventName);
        }
        public void Write(WorldPacket data)
        {
            data.WriteUInt64(EventID);
            data.WriteUInt8(EventType);
            data.WritePackedTime(Date);
            data.WriteUInt32(Flags);
            data.WriteInt32(TextureID);
            data.WritePackedGuid(EventGuildID);
            data.WritePackedGuid(OwnerGuid);

            data.WriteBits(EventName.Length, 8);
            data.FlushBits();
            data.WriteString(EventName);
        }
示例#6
0
        public void Write(WorldPacket data)
        {
            data.WritePackedGuid(Guid);
            data.WriteUInt64(InviteID);

            data.WriteUInt8(Level);
            data.WriteUInt8((byte)Status);
            data.WriteUInt8((byte)Moderator);
            data.WriteUInt8(InviteType);

            data.WritePackedTime(ResponseTime);

            data.WriteBits(Notes.GetByteCount(), 8);
            data.FlushBits();
            data.WriteString(Notes);
        }
        public void Write(WorldPacket data)
        {
            data.WritePackedGuid(Guid);
            data.WriteUInt64(InviteID);

            data.WriteUInt8(Level);
            data.WriteUInt8(Status);
            data.WriteUInt8(Moderator);
            data.WriteUInt8(InviteType);

            data.WritePackedTime(ResponseTime);

            data.WriteBits(Notes.Length, 8);
            data.FlushBits();
            data.WriteString(Notes);
        }
        public void Write(WorldPacket data)
        {
            data.WriteUInt32(Id);
            data.WriteUInt64(Quantity);
            data.WritePackedGuid(Player);
            data.WritePackedTime(Date);
            data.WriteUInt32(TimeFromStart);
            data.WriteUInt32(TimeFromCreate);
            data.WriteBits(Flags, 4);
            data.WriteBit(RafAcceptanceID.HasValue);
            data.FlushBits();

            if (RafAcceptanceID.HasValue)
            {
                data.WriteUInt64(RafAcceptanceID.Value);
            }
        }