Beispiel #1
0
 private void CreateAccount(int connectionID, int recHostID, Net_CreateAccount ca)
 {
     if (mdb.CreateAccount(ca.username, ca.password, ca.email))
     {
         //respond to client (success)
         SendClient(connectionID, recHostID, new Net_OnCreateAccount(1));
         //deal with client data
         Debug.Log(string.Format("[Login Server]: Created Account: {0}: ({1})", ca.username, ca.email));
     }
     else
     {
         //respond to client (invalid)
         SendClient(connectionID, recHostID, new Net_OnCreateAccount(0));
     }
 }