コード例 #1
0
        public virtual bool IsDuplicate(AIObjective otherObjective)
        {
#if DEBUG
            throw new NotImplementedException();
#else
            return(this.GetType() == otherObjective.GetType());
#endif
        }
コード例 #2
0
ファイル: AIObjective.cs プロジェクト: spaivaras/Barotrauma
        // TODO: check turret aioperate
        public void AddSubObjective(AIObjective objective, bool addFirst = false)
        {
            var type = objective.GetType();

            subObjectives.RemoveAll(o => o.GetType() == type);
            if (addFirst)
            {
                subObjectives.Insert(0, objective);
            }
            else
            {
                subObjectives.Add(objective);
            }
        }