예제 #1
0
        internal Response_PvE_EnterDungeon(SecurePacket packet)
            : base(packet)
        {
            if (ResultCodeNo != ResultCode.Ok)
                return;

            Int32 count = packet.GetInt32();
            while (count-- > 0)
            {
                RoundData round = new RoundData();
                round.RoundId = packet.GetInt32();
                round.Name = packet.GetStringFromUtf16();
                round.IsBossRound = packet.GetBoolean();
                round.Monsters = new List<MonsterData>();
                Rounds.Add(round);

                Int32 monsterCount = packet.GetInt32();
                while (monsterCount-- > 0)
                {
                    MonsterData monster = new MonsterData();
                    monster.MonsterNo = packet.GetInt32();
                    monster.MonsterId = packet.GetInt32();
                    monster.Name = packet.GetStringFromUtf16();
                    monster.GradeId = packet.GetInt32();
                    monster.PromotionId = packet.GetInt32();
                    monster.Level = packet.GetInt32();
                    round.Monsters.Add(monster);
                }
            }
        }