Is there a clever way to automatically cast and populate a structure or class when receiving data based on what command you send?
Suppose I have a structure for player movement that has an x and y, or a command for getting item data.
If it was possible to make user defined NetworkEventType messages, that would be the "command" to let you know which structs to populate. But I don't think there is.
Suppose I have a structure for player movement that has an x and y, or a command for getting item data.
If it was possible to make user defined NetworkEventType messages, that would be the "command" to let you know which structs to populate. But I don't think there is.