Example #1
0
        public override void Convert(byte[] rawData)
        {
            var achievementCategoryEntry = new AchievementCategoryEntry();
            achievementCategoryEntry.ID = (AchievementCategoryEntryId)GetUInt32(rawData, 0);
            achievementCategoryEntry.ParentCategory = (AchievementCategoryEntryId)GetUInt32(rawData, 1);

            AchievementMgr.AchievementCategoryEntries[achievementCategoryEntry.ID] = achievementCategoryEntry;
        }
Example #2
0
        public override void Convert(byte[] rawData)
        {
            var achievementCategoryEntry = new AchievementCategoryEntry();

            achievementCategoryEntry.ID             = (AchievementCategoryEntryId)GetUInt32(rawData, 0);
            achievementCategoryEntry.ParentCategory = (AchievementCategoryEntryId)GetUInt32(rawData, 1);

            AchievementMgr.AchievementCategoryEntries[achievementCategoryEntry.ID] = achievementCategoryEntry;
        }
        public override void Convert(byte[] rawData)
        {
            AchievementCategoryEntry achievementCategoryEntry = new AchievementCategoryEntry()
            {
                ID             = (AchievementCategoryEntryId)DBCRecordConverter.GetUInt32(rawData, 0),
                ParentCategory = (AchievementCategoryEntryId)DBCRecordConverter.GetUInt32(rawData, 1)
            };

            AchievementMgr.AchievementCategoryEntries[achievementCategoryEntry.ID] = achievementCategoryEntry;
        }