public void Read(WorldPacket data) { MinLevel = data.ReadInt32(); MaxLevel = data.ReadInt32(); RaceFilter = data.ReadInt64(); ClassFilter = data.ReadInt32(); uint nameLength = data.ReadBits <uint>(6); uint virtualRealmNameLength = data.ReadBits <uint>(9); uint guildNameLength = data.ReadBits <uint>(7); uint guildVirtualRealmNameLength = data.ReadBits <uint>(9); uint wordsCount = data.ReadBits <uint>(3); ShowEnemies = data.HasBit(); ShowArenaPlayers = data.HasBit(); ExactName = data.HasBit(); ServerInfo.HasValue = data.HasBit(); data.ResetBitPos(); for (int i = 0; i < wordsCount; ++i) { Words.Add(data.ReadString(data.ReadBits <uint>(7))); data.ResetBitPos(); } Name = data.ReadString(nameLength); VirtualRealmName = data.ReadString(virtualRealmNameLength); Guild = data.ReadString(guildNameLength); GuildVirtualRealmName = data.ReadString(guildVirtualRealmNameLength); if (ServerInfo.HasValue) { ServerInfo.Value.Read(data); } }
public void Read(WorldPacket data) { RequesterGuid = data.ReadPackedGuid(); Id = data.ReadUInt32(); Type = (RideType)data.ReadUInt32(); Time = data.ReadInt64(); }
public void Read(WorldPacket data) { Timestamp = data.ReadInt64(); AuthorGUID = data.ReadPackedGuid(); bool hasClubID = data.HasBit(); bool hasChannelGUID = data.HasBit(); bool hasRealmAddress = data.HasBit(); bool hasSlashCmd = data.HasBit(); uint textLength = data.ReadBits <uint>(12); if (hasClubID) { ClubID.HasValue = true; ClubID.Value = data.ReadUInt64(); } if (hasChannelGUID) { ChannelGUID.HasValue = true; ChannelGUID.Value = data.ReadPackedGuid(); } if (hasRealmAddress) { RealmAddress.HasValue = true; RealmAddress.Value.VirtualRealmAddress = data.ReadUInt32(); RealmAddress.Value.field_4 = data.ReadUInt16(); RealmAddress.Value.field_6 = data.ReadUInt8(); } if (hasSlashCmd) { SlashCmd.HasValue = true; SlashCmd.Value = data.ReadInt32(); } Text = data.ReadString(textLength); }
public SupportTicketChatLine(WorldPacket data) { Timestamp = data.ReadInt64(); Text = data.ReadString(data.ReadBits <uint>(12)); }