Exemplo n.º 1
0
        private void ParseLoginSuccess(InputMessage message)
        {
            m_Player.ID   = message.GetU32();
            m_Player.Name = CharacterName;

#if !UNITY_EDITOR
            string title = string.Format("OpenTibiaUnity - {0}", m_Player.Name);
            OpenTibiaUnity.GameManager.SetApplicationTitle(title);
#endif

            BeatDuration = message.GetU16();
            if (OpenTibiaUnity.GameManager.GetFeature(GameFeatures.GameNewSpeedLaw))
            {
                Creatures.Creature.SpeedA = message.GetDouble();
                Creatures.Creature.SpeedB = message.GetDouble();
                Creatures.Creature.SpeedC = message.GetDouble();
            }

            m_BugreportsAllowed = message.GetBool();

            if (OpenTibiaUnity.GameManager.ClientVersion >= 1054)
            {
                bool canChangePvPFrameRate = message.GetBool();
            }

            if (OpenTibiaUnity.GameManager.ClientVersion >= 1058)
            {
                bool exportPvPEnabled = message.GetBool();
            }

            if (OpenTibiaUnity.GameManager.GetFeature(GameFeatures.GameIngameStore))
            {
                string storeLink        = message.GetString();
                ushort storePackageSize = message.GetU16();
            }
        }