public void Handle(object objData, Server_ServerClient client)
        {
            var data           = (Message_ClientRequest_Login)objData;
            var passwordHashed = DBPasswordHash.GetHashString(data.password);
            var player         = DBLogin.GetPlayer(data.name, passwordHashed);
            var msg            = new Message_ServerResponse_Login(player);

            server.messageSender.Send(msg, client);
        }
Пример #2
0
 public void LoginResponse(Message_ServerResponse_Login objData)
 {
     if (objData.loginSucceded)
     {
         UnityConfig.GetPersistentDataContainer().SetProfile(objData);
         gUIHandler.SetUIState_MM();
     }
     else
     {
         MM_GUIHandler.Instance.registerLogin_GuiHandler.SetPopupMessage("Login suceeded were " + objData.loginSucceded, true);
     }
 }
Пример #3
0
 public void SetProfile(Message_ServerResponse_Login objData)
 {
     profile = objData.profile;
 }