Beispiel #1
0
        public object Clone()
        {
            SHQuestObjectives clone = new SHQuestObjectives();

            foreach (SHQuestObjective obj in dataList)
            {
                clone.dataList.Add((SHQuestObjective)obj.Clone());
            }
            return(clone);
        }
Beispiel #2
0
        public void Assign(SHQuest srcQuest)
        {
            _title    = srcQuest._title;
            _desc     = srcQuest._desc;
            _category = srcQuest._category;

            _repeatable         = srcQuest._repeatable;
            repeatableSpecified = srcQuest.repeatableSpecified;

            _dialog         = srcQuest._dialog;
            dialogSpecified = srcQuest.dialogSpecified;

            _incomplete_dialog         = srcQuest._incomplete_dialog;
            incomplete_dialogSpecified = srcQuest.incomplete_dialogSpecified;

            _level         = srcQuest._level;
            levelSpecified = srcQuest.levelSpecified;

            _timelimit         = srcQuest._timelimit;
            timelimitSpecified = srcQuest.timelimitSpecified;

            _condition         = srcQuest._condition;
            conditionSpecified = srcQuest.conditionSpecified;

            _destroy_item = srcQuest._destroy_item;

            _share         = srcQuest._share;
            shareSpecified = srcQuest.shareSpecified;

            _party_field         = srcQuest._party_field;
            party_fieldSpecified = srcQuest.party_fieldSpecified;

            _party_sensor         = srcQuest._party_sensor;
            party_sensorSpecified = srcQuest.party_sensorSpecified;

            _party_member_count         = srcQuest._party_member_count;
            party_member_countSpecified = srcQuest.party_member_countSpecified;

            _cq_condition         = srcQuest._cq_condition;
            cq_conditionSpecified = srcQuest.cq_conditionSpecified;


            _share_condition         = srcQuest._share_condition;
            share_conditionSpecified = srcQuest.share_conditionSpecified;

            _players         = srcQuest._players;
            playersSpecified = srcQuest.playersSpecified;

            _trialtype         = srcQuest._trialtype;
            trialtypeSpecified = srcQuest.trialtypeSpecified;

            _field_group         = srcQuest._field_group;
            field_groupSpecified = srcQuest.field_groupSpecified;

            _comment = srcQuest._comment;

            _validation         = srcQuest._validation;
            validationSpecified = srcQuest.validationSpecified;

            if (srcQuest.Items == null)
            {
                this.Items = null;
            }
            else
            {
                this.Items = (SHItemAddRemove)srcQuest.Items.Clone();
            }

            if (srcQuest.Objectives == null)
            {
                this.Objectives = null;
            }
            else
            {
                this.Objectives = (SHQuestObjectives)srcQuest.Objectives.Clone();
            }

            if (srcQuest.Rewards == null)
            {
                this.Rewards = null;
            }
            else
            {
                this.Rewards = (SHQuestRewards)srcQuest.Rewards.Clone();
            }
        }