Esempio n. 1
0
        public static void HandleScenarioState(Packet packet)
        {
            packet.ReadInt32("ScenarioID");
            packet.ReadInt32("CurrentStep");
            packet.ReadInt32 <DifficultyId>("DifficultyID");
            packet.ReadInt32("WaveCurrent");
            packet.ReadInt32("WaveMax");
            packet.ReadInt32("TimerDuration");

            var int36 = packet.ReadInt32("CriteriaProgressCount");
            var int20 = packet.ReadInt32("BonusObjectiveDataCount");

            for (int i = 0; i < int36; i++)
            {
                AchievementHandler.ReadCriteriaProgress(packet, "CriteriaProgress", i);
            }

            for (int i = 0; i < int20; i++)
            {
                packet.ReadInt32("BonusObjectiveID", i);

                packet.ResetBitReader();
                packet.ReadBit("ObjectiveComplete", i);
            }

            packet.ResetBitReader();

            packet.ReadBit("ScenarioComplete");
        }
Esempio n. 2
0
        public static void HandleGuildAchievementData(Packet packet)
        {
            var int10 = packet.ReadUInt32("EarnedAchievementCount");

            for (var i = 0; i < int10; ++i)
            {
                AchievementHandler.ReadEarnedAchievement(packet, "Earned", i);
            }
        }
Esempio n. 3
0
 public static void HandleScenarioProgressUpdate(Packet packet)
 {
     AchievementHandler.ReadCriteriaProgress(packet, "Progress");
 }