public virtual bool IsDuplicate(AIObjective otherObjective) { #if DEBUG throw new NotImplementedException(); #else return(this.GetType() == otherObjective.GetType()); #endif }
// 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); } }