-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
294 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
WowPacketParserModule.V4_4_0_54481/Parsers/AddonHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using WowPacketParser.Enums; | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.Parsing; | ||
|
||
namespace WowPacketParserModule.V4_4_0_54481.Parsers | ||
{ | ||
public static class AddonHandler | ||
{ | ||
[Parser(Opcode.CMSG_CHAT_REGISTER_ADDON_PREFIXES)] | ||
public static void HandleChatRegisterAddonPrefixes(Packet packet) | ||
{ | ||
var count = packet.ReadInt32("Count"); | ||
|
||
for (var i = 0; i < count; ++i) | ||
{ | ||
packet.ResetBitReader(); | ||
var lengths = (int)packet.ReadBits(5); | ||
packet.ReadWoWString("Addon", lengths, i); | ||
} | ||
} | ||
|
||
[Parser(Opcode.CMSG_CHAT_UNREGISTER_ALL_ADDON_PREFIXES)] | ||
public static void HandleAddonZero(Packet packet) | ||
{ | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
WowPacketParserModule.V4_4_0_54481/Parsers/BattlePetHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
using WowPacketParser.Enums; | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.Parsing; | ||
|
||
namespace WowPacketParserModule.V4_4_0_54481.Parsers | ||
{ | ||
public static class BattlePetHandler | ||
{ | ||
public static void ReadClientBattlePet(Packet packet, params object[] idx) | ||
{ | ||
packet.ReadPackedGuid128("BattlePetGUID", idx); | ||
|
||
packet.ReadInt32("SpeciesID", idx); | ||
packet.ReadInt32("CreatureID", idx); | ||
packet.ReadInt32("DisplayID", idx); | ||
|
||
packet.ReadInt16("BreedID", idx); | ||
packet.ReadInt16("Level", idx); | ||
packet.ReadInt16("Xp", idx); | ||
packet.ReadInt16("BattlePetDBFlags", idx); | ||
|
||
packet.ReadInt32("Power", idx); | ||
packet.ReadInt32("Health", idx); | ||
packet.ReadInt32("MaxHealth", idx); | ||
packet.ReadInt32("Speed", idx); | ||
|
||
packet.ReadByte("BreedQuality", idx); | ||
|
||
packet.ResetBitReader(); | ||
|
||
var customNameLength = packet.ReadBits(7); | ||
var hasOwnerInfo = packet.ReadBit("HasOwnerInfo", idx); | ||
packet.ReadBit("NoRename", idx); | ||
|
||
packet.ReadWoWString("CustomName", customNameLength, idx); | ||
|
||
if (hasOwnerInfo) | ||
V6_0_2_19033.Parsers.BattlePetHandler.ReadClientBattlePetOwnerInfo(packet, "OwnerInfo", idx); | ||
} | ||
|
||
[Parser(Opcode.SMSG_BATTLE_PET_JOURNAL)] | ||
public static void HandleBattlePetJournal(Packet packet) | ||
{ | ||
packet.ReadInt16("TrapLevel"); | ||
|
||
var slotsCount = packet.ReadInt32("SlotsCount"); | ||
var petsCount = packet.ReadInt32("PetsCount"); | ||
|
||
packet.ReadBit("HasJournalLock"); | ||
packet.ResetBitReader(); | ||
|
||
for (var i = 0; i < slotsCount; i++) | ||
V6_0_2_19033.Parsers.BattlePetHandler.ReadClientPetBattleSlot(packet, i); | ||
|
||
for (var i = 0; i < petsCount; i++) | ||
ReadClientBattlePet(packet, i); | ||
} | ||
|
||
[Parser(Opcode.SMSG_BATTLE_PET_JOURNAL_LOCK_ACQUIRED)] | ||
[Parser(Opcode.CMSG_BATTLE_PET_REQUEST_JOURNAL)] | ||
public static void HandleBattlePetZero(Packet packet) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
WowPacketParserModule.V4_4_0_54481/Parsers/CalenderHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using WowPacketParser.Enums; | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.Parsing; | ||
|
||
namespace WowPacketParserModule.V4_4_0_54481.Parsers | ||
{ | ||
public static class CalenderHandler | ||
{ | ||
[Parser(Opcode.CMSG_CALENDAR_GET_NUM_PENDING)] | ||
public static void HandleCalenderZero(Packet packet) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
WowPacketParserModule.V4_4_0_54481/Parsers/ContactHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using WowPacketParser.Enums; | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.Parsing; | ||
|
||
namespace WowPacketParserModule.V4_4_0_54481.Parsers | ||
{ | ||
public static class ContactHandler | ||
{ | ||
public static void ReadContactInfo(Packet packet, params object[] index) | ||
{ | ||
packet.ReadPackedGuid128("Guid", index); | ||
packet.ReadPackedGuid128("WowAccount", index); | ||
|
||
packet.ReadUInt32("VirtualRealmAddr", index); | ||
packet.ReadUInt32("NativeRealmAddr", index); | ||
packet.ReadUInt32("TypeFlags", index); | ||
|
||
packet.ReadByte("Status", index); | ||
|
||
packet.ReadUInt32<AreaId>("AreaID", index); | ||
packet.ReadUInt32("Level", index); | ||
packet.ReadUInt32("ClassID", index); | ||
|
||
packet.ResetBitReader(); | ||
|
||
var notesLen = packet.ReadBits(10); | ||
packet.ReadBit("Mobile"); | ||
packet.ReadWoWString("Notes", notesLen); | ||
} | ||
|
||
[Parser(Opcode.SMSG_CONTACT_LIST)] | ||
public static void HandleContactList(Packet packet) | ||
{ | ||
packet.ReadInt32E<ContactListFlag>("List Flags"); | ||
var contactInfoCount = packet.ReadBits("ContactInfoCount", 8); | ||
|
||
for (var i = 0; i < contactInfoCount; i++) | ||
ReadContactInfo(packet, i); | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
WowPacketParserModule.V4_4_0_54481/Parsers/GuildHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using WowPacketParser.Enums; | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.Parsing; | ||
|
||
namespace WowPacketParserModule.V4_4_0_54481.Parsers | ||
{ | ||
public static class GuildHandler | ||
{ | ||
[Parser(Opcode.CMSG_GUILD_BANK_REMAINING_WITHDRAW_MONEY_QUERY)] | ||
public static void HandleGuildZero(Packet packet) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using WowPacketParser.Enums; | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.Parsing; | ||
|
||
namespace WowPacketParserModule.V4_4_0_54481.Parsers | ||
{ | ||
public static class LfgHandler | ||
{ | ||
public static void ReadLFGListBlacklistEntry(Packet packet, params object[] indexes) | ||
{ | ||
packet.ReadInt32("ActivityID", indexes); | ||
packet.ReadInt32("Reason", indexes); | ||
} | ||
|
||
[Parser(Opcode.CMSG_DF_GET_SYSTEM_INFO)] | ||
public static void HandleLFGLockInfoRequest(Packet packet) | ||
{ | ||
packet.ReadBit("Player"); | ||
if (packet.ReadBit()) | ||
packet.ReadByte("PartyIndex"); | ||
} | ||
|
||
[Parser(Opcode.SMSG_LFG_LIST_UPDATE_BLACKLIST)] | ||
public static void HandleLFGListUpdateBlacklist(Packet packet) | ||
{ | ||
var count = packet.ReadInt32("BlacklistEntryCount"); | ||
for (int i = 0; i < count; i++) | ||
ReadLFGListBlacklistEntry(packet, i, "ListBlacklistEntry"); | ||
} | ||
|
||
[Parser(Opcode.CMSG_LFG_LIST_GET_STATUS)] | ||
[Parser(Opcode.CMSG_REQUEST_LFG_LIST_BLACKLIST)] | ||
[Parser(Opcode.CMSG_DF_GET_JOIN_STATUS)] | ||
public static void HandleLfgZero(Packet packet) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using WowPacketParser.Enums; | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.Parsing; | ||
|
||
namespace WowPacketParserModule.V4_4_0_54481.Parsers | ||
{ | ||
public static class MailHandler | ||
{ | ||
[Parser(Opcode.CMSG_QUERY_NEXT_MAIL_TIME)] | ||
public static void HandleNullMail(Packet packet) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
WowPacketParserModule.V4_4_0_54481/Parsers/TokenHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using WowPacketParser.Enums; | ||
using WowPacketParser.Misc; | ||
using WowPacketParser.Parsing; | ||
|
||
namespace WowPacketParserModule.V4_4_0_54481.Parsers | ||
{ | ||
public static class TokenHandler | ||
{ | ||
[Parser(Opcode.SMSG_COMMERCE_TOKEN_UPDATE)] | ||
public static void HandleCommerceTokenUpdate(Packet packet) | ||
{ | ||
var count1 = packet.ReadInt32("DistributionCount1"); | ||
var count2 = packet.ReadInt32("DistributionCount2"); | ||
|
||
for (int i = 0; i < count1; i++) | ||
packet.ReadInt64("DistributionID", i); | ||
|
||
for (int i = 0; i < count2; i++) | ||
packet.ReadInt64("DistributionID", i); | ||
} | ||
} | ||
} |