예제 #1
0
        internal void HandleRemoval(MegaloScriptCondition cond)
        {
            var union_group = UnionGroups[cond.UnionGroup];

            union_group.Remove(this, cond.Handle);

            HandleRemoval(cond.Arguments);
        }
예제 #2
0
 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);
     }
 }
예제 #3
0
 internal void Add(MegaloScriptCondition cond)
 {
     cond.AssociateWith(this);
     mConditions.Add(cond.Handle);
 }