Beispiel #1
0
 private void loginClient(GameClient c, string pwd)
 {
     if (Program.CUR_PHASE == Program.Phase.FULL)
     {
         if (DBConnection.login(c.getUserName(), pwd))
         {
             c.setLogin();
             c.sendMessage(Message.LOGIN_OK);
         }
         else
         {
             c.sendMessage(Message.LOGIN_FAIL);
         }
     }
 }