internal void HandleRemoval(MegaloScriptCondition cond) { var union_group = UnionGroups[cond.UnionGroup]; union_group.Remove(this, cond.Handle); HandleRemoval(cond.Arguments); }
internal void Insert(MegaloScriptCondition cond, MegaloScriptModelObjectHandle evaluateBefore) { cond.AssociateWith(this); if (evaluateBefore.IsNone) { mConditions.Add(cond.Handle); } else { int insert_index = mConditions.IndexOf(evaluateBefore); Contract.Assert(insert_index >= 0); mConditions.Insert(insert_index, cond.Handle); } }
internal void Add(MegaloScriptCondition cond) { cond.AssociateWith(this); mConditions.Add(cond.Handle); }