Пример #1
0
        public BaseQuest(QuestInfo info, QuestDataInfo data)
        {
            this.m_info         = info;
            this.m_data         = data;
            this.m_data.QuestID = this.m_info.ID;
            this.m_list         = new List <BaseCondition>();
            List <QuestConditionInfo> list = QuestMgr.GetQuestCondiction(info);
            int index = 0;

            foreach (QuestConditionInfo ci in list)
            {
                BaseCondition cd = BaseCondition.CreateCondition(this, ci, data.GetConditionValue(index++));
                if (cd != null)
                {
                    this.m_list.Add(cd);
                }
            }
        }
Пример #2
0
        public BaseQuest(QuestInfo info, QuestDataInfo data)
        {
            this.m_info         = info;
            this.m_data         = data;
            this.m_data.QuestID = this.m_info.ID;
            this.m_list         = new List <BaseCondition>();
            List <QuestConditionInfo> questCondiction = QuestMgr.GetQuestCondiction(info);
            int num = 0;

            foreach (QuestConditionInfo current in questCondiction)
            {
                BaseCondition baseCondition = BaseCondition.CreateCondition(this, current, data.GetConditionValue(num++));
                if (baseCondition != null)
                {
                    this.m_list.Add(baseCondition);
                }
            }
        }