GAMEDEV.NET
Registering a function to handle a script-specific class
I'm trying to get two scripts (on different machines) to communicate, by sending each other structs that are defined by the scripts themselves. To send a struct is easy enough: I declare message to be an interface (without any methods, just an interface). A script-class can then just inherit from this interface, and passed to function send(message@) which serializes it and sends it to the other script.I was hoping to get the other script to register a callback for handling the messag
0 Yorumlar 0 hisse senetleri 32 Views