public override void Convert(byte[] rawData) { var xpInfo = new QuestXPInfo { Level = GetInt32(rawData, 0), RewXP = new[] { GetInt32(rawData, 2), GetInt32(rawData, 3), GetInt32(rawData, 4), GetInt32(rawData, 5), GetInt32(rawData, 6), GetInt32(rawData, 7), GetInt32(rawData, 8), GetInt32(rawData, 9) } }; QuestMgr.QuestXpInfos[(uint)xpInfo.Level] = xpInfo; }
public override void Convert(byte[] rawData) { QuestXPInfo questXpInfo = new QuestXPInfo() { Level = DBCRecordConverter.GetInt32(rawData, 0), RewXP = new int[8] { DBCRecordConverter.GetInt32(rawData, 2), DBCRecordConverter.GetInt32(rawData, 3), DBCRecordConverter.GetInt32(rawData, 4), DBCRecordConverter.GetInt32(rawData, 5), DBCRecordConverter.GetInt32(rawData, 6), DBCRecordConverter.GetInt32(rawData, 7), DBCRecordConverter.GetInt32(rawData, 8), DBCRecordConverter.GetInt32(rawData, 9) } }; QuestMgr.QuestXpInfos[(uint)questXpInfo.Level] = questXpInfo; }