示例#1
0
        public override void Convert(byte[] rawData)
        {
            var questRewRepInfo = new QuestRewRepInfo
            {
                Id = GetInt32(rawData, 0),
                RewRep = 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),
                    GetInt32(rawData, 10)
				}
            };
            QuestMgr.QuestRewRepInfos[(uint)questRewRepInfo.Id - 1] = questRewRepInfo;
        }
        public override void Convert(byte[] rawData)
        {
            QuestRewRepInfo questRewRepInfo = new QuestRewRepInfo
            {
                Id     = GetInt32(rawData, 0),
                RewRep = new int[9]
                {
                    GetInt32(rawData, 2),
                    GetInt32(rawData, 3),
                    GetInt32(rawData, 4),
                    GetInt32(rawData, 5),
                    GetInt32(rawData, 6),
                    GetInt32(rawData, 7),
                    GetInt32(rawData, 8),
                    GetInt32(rawData, 9),
                    GetInt32(rawData, 10)
                }
            };

            QuestMgr.QuestRewRepInfos[(uint)(questRewRepInfo.Id - 1)] = questRewRepInfo;
        }