public override void Write() { _worldPacket.WriteUInt8((byte)EventType); _worldPacket.WritePackedGuid(OwnerGuid); _worldPacket.WriteUInt64(EventID); _worldPacket.WriteUInt8((byte)GetEventType); _worldPacket.WriteInt32(TextureID); _worldPacket.WriteUInt32((uint)Flags); _worldPacket.WritePackedTime(Date); _worldPacket.WriteUInt32((uint)LockDate); _worldPacket.WritePackedGuid(EventGuildID); _worldPacket.WriteInt32(Invites.Count); _worldPacket.WriteBits(EventName.GetByteCount(), 8); _worldPacket.WriteBits(Description.GetByteCount(), 11); _worldPacket.FlushBits(); foreach (var invite in Invites) { invite.Write(_worldPacket); } _worldPacket.WriteString(EventName); _worldPacket.WriteString(Description); }
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 override void Write() { _worldPacket.WriteUInt64(EventID); _worldPacket.WritePackedTime(OriginalDate); _worldPacket.WritePackedTime(Date); _worldPacket.WriteUInt32((uint)LockDate); _worldPacket.WriteUInt32((uint)Flags); _worldPacket.WriteInt32(TextureID); _worldPacket.WriteUInt8((byte)EventType); _worldPacket.WriteBits(EventName.GetByteCount(), 8); _worldPacket.WriteBits(Description.GetByteCount(), 11); _worldPacket.WriteBit(ClearPending); _worldPacket.FlushBits(); _worldPacket.WriteString(EventName); _worldPacket.WriteString(Description); }
public override void Write() { _worldPacket.WriteUInt64(EventID); _worldPacket.WritePackedTime(Date); _worldPacket.WriteUInt32((uint)Flags); _worldPacket.WriteUInt8((byte)EventType); _worldPacket.WriteInt32(TextureID); _worldPacket.WritePackedGuid(EventGuildID); _worldPacket.WriteUInt64(InviteID); _worldPacket.WriteUInt8((byte)Status); _worldPacket.WriteUInt8((byte)ModeratorStatus); // Todo: check order _worldPacket.WritePackedGuid(InvitedByGuid); _worldPacket.WritePackedGuid(OwnerGuid); _worldPacket.WriteBits(EventName.GetByteCount(), 8); _worldPacket.FlushBits(); _worldPacket.WriteString(EventName); }