public void OnLoginAuth(CM_LOGIN_AUTH p)
 {
     ActorID = p.ActorID;
     p.GetInfo(out string name, out string email, out string token);
     Name  = name;
     Email = email;
     if (token == "4165E727FDE5F82DDA7BB8977CF8A3FBBD5C8A61EF90ED81EDAA98B6ED180740131ABD2EDAEBAB6EDE7B6B2579F3BCF3CDB257E17165D38171FD7632C1F7CC31" &&
         ChatClientManager.Instance.Login(this))
     {
         Authenticated = true;
         Logger.Log.Info(string.Format("Player:{0}({1}|0x{2:X}) is logging in", name, email, ActorID));
         SM_LOGIN_AUTH_RESULT p1 = new SM_LOGIN_AUTH_RESULT();
         Network.SendPacket(p1);
     }
 }
Exemple #2
0
        private void SendAuthFinish()
        {
            SM_LOGIN_AUTH_RESULT p = new SM_LOGIN_AUTH_RESULT();

            Network.SendPacket(p);
        }