Ejemplo n.º 1
0
        void ProcessValidateGameInfo(ValidateGameInfoArgs gia, HClient client)
        {
            byte[] hash       = gia.GameInfo.GenerateHash();
            string serverHash = Encoding.UTF8.GetString(hash);
            string clientHash = gia.Hash;

            AuthStringManager.AuthAccountInfo aai = _server.AuthManager.FindAccount(gia.AuthString);
            gia.GameInfo.AuthString   = gia.AuthString;
            gia.GameInfo.DisplayName  = aai.DisplayName;
            gia.GameInfo.HardCurrency = aai.HardCurrency;
            gia.GameInfo.VipData      = VipData.Create(aai.Vip);
            client.SendValidateGameInfoResponse(aai.AccountID, aai.HardCurrency, aai.Vip, serverHash == clientHash, gia.GameInfo);
        }