Closed Demonofpower closed 1 year ago
I modified your code to avoid the huge switch-case list that would require too much work. Similarly to how the WrapperDeserializer manages to find the packet Descriptor for deserialization, I get all the Enum values from PacketCommand and build the class name based on the pattern the developers made.
From there, I call the descriptor and force-cast it to the recently mapped PacketCommand -> Class and convert it to a string. This should save us god knows how much time ;)
Can we merge? @d3v1l401
Not 100% clean code but it works quite good.