# So I have this code:```nim # type NextState = enum # Status = 1, Login = 2 # packetData(5, 0x01, TestPacket): # protocol: VarNum[int32] # address: String[255] # port: uint16 # nextState: NextState `packetData` is a macro that generates a type and (after I get enums working) functions for serialising and deserialising the data into a buffer type, but the issue is I can't figure out how to make it so enums can also be used as a field type. which is important as sometimes data is stored as an enum in the protocol, and supporting that is important imo