public static string GenerateServerAcceptJoinMessage(GameStartInfo gsi) { NetworkingMessageType msgType = NetworkingMessageType.SERVER_JOIN_RESPONSE; NetworkingMessage msg = new NetworkingMessage(msgType); msg.content = ToJson(gsi); return(ToJson(msg)); }
public NetworkingMessage(NetworkingMessageType type, UInt32 clientID, byte[] content) { this.type = type; this.clientID = clientID; this.content = content; }
public NetworkingMessage(NetworkingMessageType type, UInt32 clientID) { this.type = type; this.clientID = clientID; }
public NetworkingMessage(NetworkingMessageType type, string content) { this.type = type; this.content = content; }
public NetworkingMessage(NetworkingMessageType type) { this.type = type; }