Exemplo n.º 1
0
    public static string GenerateServerAcceptJoinMessage(GameStartInfo gsi)
    {
        NetworkingMessageType msgType = NetworkingMessageType.SERVER_JOIN_RESPONSE;

        NetworkingMessage msg = new NetworkingMessage(msgType);

        msg.content = ToJson(gsi);
        return(ToJson(msg));
    }
Exemplo n.º 2
0
 public NetworkingMessage(NetworkingMessageType type, UInt32 clientID, byte[] content)
 {
     this.type     = type;
     this.clientID = clientID;
     this.content  = content;
 }
Exemplo n.º 3
0
 public NetworkingMessage(NetworkingMessageType type, UInt32 clientID)
 {
     this.type     = type;
     this.clientID = clientID;
 }
Exemplo n.º 4
0
 public NetworkingMessage(NetworkingMessageType type, string content)
 {
     this.type    = type;
     this.content = content;
 }
Exemplo n.º 5
0
 public NetworkingMessage(NetworkingMessageType type)
 {
     this.type = type;
 }