namespace RoboidControl { /// /// Root structure for all communcation messages /// public class IMessage { public IMessage() { } /// /// Create a message for receiving /// /// The byte array to parse public IMessage(byte[] buffer) { //Deserialize(buffer); } /// /// Serialize the message into a byte array for sending /// /// The buffer to serilize into /// The length of the message in the buffer public virtual byte Serialize(ref byte[] buffer) { return 0; } } }