コード例 #1
0
        public override void Parse(AchievementObjectiveRecord objective)
        {
            base.m_defaultObjective = objective;

            var criterions = objective.Criterion.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);

            foreach (var item in criterions)
            {
                var match = Regex.Match(item, "(?<name>[a-zA-Z]{2})(?<operator>[<=>]{1})(?<content>.*)");
                if (match.Success)
                {
                    this.m_criterions.Add(this.Parse(
                                              AbstractCriterion.GetOperator(match.Groups["operator"].Value[0]),
                                              match.Groups["content"].Value.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries)));
                }
                else
                {
                    throw new Exception();
                }
            }
        }
コード例 #2
0
 // CONSTRUCTORS
 public AchievementPointsCriterion(AchievementObjectiveRecord objective)
     : base(objective)
 {
 }
 // CONSTRUCTORS
 public KillMonsterWithChallengeCriterion(AchievementObjectiveRecord objective)
     : base(objective)
 {
     this.m_monster = Singleton <MonsterManager> .Instance.GetTemplate(this.MonsterId);
 }
コード例 #4
0
 // CONSTRUCTORS
 public ChallengesCriterion(AchievementObjectiveRecord objective)
     : base(objective)
 {
 }
コード例 #5
0
 // CONSTRUCTORS
 public LevelCriterion(AchievementObjectiveRecord objective)
     : base(objective)
 {
 }
コード例 #6
0
        // CONSTRUCTORS
        public AbstractCriterion(AchievementObjectiveRecord objective)
        {
            this.m_criterions = new List <Data>();

            this.Parse(objective);
        }