Closed knollpoi closed 4 years ago
The construction of the ID can be complex based the actual protocol in question. While we could add information information to make it possible I don't think this is warranted, especially since you still have to hand write remainder of the low level packet functions.
This might be out of scope for ProtoGen, but I'll put in a request for it anyway...
It would be nice to have ProtoGen automatically generate the getPacketID() function based on the data contained in the protocol XML file. It might only be necessary to add a new tag in the Packet sub-document to indicate which field is the "next protocol" or "next packet ID" field.