Esempio n. 1
0
        public void SerializeFrom(UnityUtility.CStream msgStream)
        {
            m_index = msgStream.ReadUInt();
            UInt16 type = msgStream.ReadUShort();

            m_type = (EMonsterType)type;
            UInt16 count = msgStream.ReadUShort();

            for (UInt16 i = 0; i < count; ++i)
            {
                CPrizeItem item = new CPrizeItem();
                item.SerializeFrom(msgStream);
                m_listDropItems.Add(item);
            }
        }
Esempio n. 2
0
        public Int32 GetKilledMonstersOfType(EMonsterType p_type)
        {
            Int32 num = 0;

            foreach (Int32 num2 in m_questMonsters.Keys)
            {
                if (m_questMonsters[num2] != 0)
                {
                    MonsterStaticData staticData = StaticDataHandler.GetStaticData <MonsterStaticData>(EDataType.MONSTER, num2);
                    if (staticData.Type == p_type)
                    {
                        num += m_questMonsters[num2];
                    }
                }
            }
            return(num);
        }