public static triggercondition TriggerAddCondition(trigger whichTrigger, boolexpr condition)
        {
            triggercondition addCondition = new triggercondition();

            whichTrigger.conditions.Add(addCondition);
            return(addCondition);
        }
Exemple #2
0
 public static boolean SaveBooleanExprHandle(hashtable table, integer parentKey, integer childKey, boolexpr whichBoolexpr)
 {
     table.Add(parentKey.ToString("x8") + childKey.ToString("x8"), whichBoolexpr);
     return(true);
 }
 public static @event TriggerRegisterFilterUnitEvent(trigger whichTrigger, unit whichUnit, unitevent whichEvent, boolexpr filter)
 {
     throw new NotImplementedException();
 }
 public static @event TriggerRegisterUnitInRange(trigger whichTrigger, unit whichUnit, real range, boolexpr filter)
 {
     throw new NotImplementedException();
 }
        public static @event TriggerRegisterPlayerUnitEvent(trigger whichTrigger, player whichPlayer, playerunitevent whichPlayerUnitEvent, boolexpr filter)
        {
            @event triEvent = new @event()
            {
                sourcePlayer = whichPlayer, playerUnitEvent = whichPlayerUnitEvent
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
 public static @event TriggerRegisterLeaveRegion(trigger whichTrigger, region whichRegion, boolexpr filter)
 {
     throw new NotImplementedException();
 }