Example #1
0
 public PacketAttribute(byte module, ushort command)
 {
     this.id = NetworkHelper.EncodePacketID(module, command);
 }
Example #2
0
 internal static Type GetPacketType(byte module, ushort command)
 {
     return(!PACKET_MAP.TryGetValue(NetworkHelper.EncodePacketID(module, command), out Type type) ? null : type);
 }