public uint GetPacketID(string packetName) { PacketOpcodeEntry entry = _opcodeList.Server.Packets.Find(poe => poe.Name == packetName); if (entry == null) { return(0); } return(entry.ID); }
public string GetPacketName(byte opcode, uint id) { PacketOpcodeEntry entry = _opcodeList.Client.Packets.Find(poe => poe.ID == id && poe.Opcode == opcode); if (entry == null) { return(""); } return(entry.Name); }
public byte GetOpcode(string packetName) { PacketOpcodeEntry entry = _opcodeList.Server.Packets.Find(poe => poe.Name == packetName); if (entry == null) { return(0); } return(entry.Opcode); }