|
| 1 | +using WowPacketParser.Misc; |
| 2 | + |
| 3 | +namespace WowPacketParser.Enums.Version.V1_15_8_63829 |
| 4 | +{ |
| 5 | + public static class Opcodes_1_15_8 |
| 6 | + { |
| 7 | + public static BiDictionary<Opcode, int> Opcodes(Direction direction) |
| 8 | + { |
| 9 | + switch (direction) |
| 10 | + { |
| 11 | + case Direction.ClientToServer: |
| 12 | + return ClientOpcodes; |
| 13 | + case Direction.ServerToClient: |
| 14 | + return ServerOpcodes; |
| 15 | + default: |
| 16 | + return MiscOpcodes; |
| 17 | + } |
| 18 | + } |
| 19 | + |
| 20 | + private static readonly BiDictionary<Opcode, int> ClientOpcodes = new() |
| 21 | + { |
| 22 | + { Opcode.CMSG_CHAT_MESSAGE_SAY, 0x2F0023 }, |
| 23 | + { Opcode.CMSG_SEND_TEXT_EMOTE, 0x2F0024 }, |
| 24 | + { Opcode.CMSG_USE_ITEM, 0x30016B }, |
| 25 | + }; |
| 26 | + |
| 27 | + private static readonly BiDictionary<Opcode, int> ServerOpcodes = new() |
| 28 | + { |
| 29 | + { Opcode.SMSG_TEXT_EMOTE, 0x3B0116 }, |
| 30 | + { Opcode.SMSG_EMOTE, 0x3A026B }, |
| 31 | + { Opcode.SMSG_CHAT, 0x3F0001 }, |
| 32 | + { Opcode.SMSG_ON_MONSTER_MOVE, 0x4C0002 }, |
| 33 | + { Opcode.SMSG_UPDATE_OBJECT, 0x4A0000 }, |
| 34 | + { Opcode.SMSG_AURA_UPDATE, 0x510011 }, |
| 35 | + { Opcode.SMSG_SPELL_GO, 0x510028 }, |
| 36 | + { Opcode.SMSG_SPELL_START, 0x510029 }, |
| 37 | + { Opcode.SMSG_PET_SPELLS_MESSAGE, 0x510014 }, |
| 38 | + }; |
| 39 | + |
| 40 | + private static readonly BiDictionary<Opcode, int> MiscOpcodes = new(); |
| 41 | + } |
| 42 | +} |
0 commit comments