public static @event TriggerRegisterUnitStateEvent(trigger whichTrigger, unit whichUnit, unitstate whichState, limitop opcode, real limitval)
        {
            @event triEvent = new @event()
            {
                sourceUnit = whichUnit, unitStateEvent = opcode
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
        public static @event TriggerRegisterDeathEvent(trigger whichTrigger, widget whichWidget)
        {
            @event triEvent = new @event()
            {
                unitevent = EVENT_UNIT_DEATH
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
        public static @event TriggerRegisterPlayerChatEvent(trigger whichTrigger, player whichPlayer, @string chatMessageToDetect, boolean exactMatchOnly)
        {
            @event triEvent = new @event()
            {
                sourcePlayer = whichPlayer, chatMatchMessage = chatMessageToDetect, playerEvent = EVENT_PLAYER_CHAT
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
        public static @event TriggerRegisterUnitEvent(trigger whichTrigger, unit whichUnit, unitevent whichEvent)
        {
            @event triEvent = new @event()
            {
                unitevent = whichEvent, sourceUnit = whichUnit
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
        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 TriggerRegisterPlayerStateEvent(trigger whichTrigger, player whichPlayer, playerstate whichState, limitop opcode, real limitval)
        {
            @event triEvent = new @event()
            {
                sourcePlayer = whichPlayer, playerStateEvent = whichState
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
        public static @event TriggerRegisterTrackableTrackEvent(trigger whichTrigger, trackable t)
        {
            @event triEvent = new @event()
            {
                sourceTrackable = t
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
        public static @event TriggerRegisterPlayerEvent(trigger whichTrigger, player whichPlayer, playerevent whichPlayerEvent)
        {
            @event triEvent = new @event()
            {
                sourcePlayer = whichPlayer, playerEvent = whichPlayerEvent
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
        public static @event TriggerRegisterDialogButtonEvent(trigger whichTrigger, button whichButton)
        {
            @event triEvent = new @event()
            {
                sourceDialogButton = whichButton
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
Exemplo n.º 10
0
        public static @event TriggerRegisterDialogEvent(trigger whichTrigger, dialog whichDialog)
        {
            @event triEvent = new @event()
            {
                sourceDialog = whichDialog
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
Exemplo n.º 11
0
        public static @event TriggerRegisterGameStateEvent(trigger whichTrigger, gamestate whichState, limitop opcode, real limitval)
        {
            @event triEvent = new @event()
            {
                gamestateEvent = whichState
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
Exemplo n.º 12
0
        public static @event TriggerRegisterTimerExpireEvent(trigger whichTrigger, timer t)
        {
            @event triEvent = new @event()
            {
                sourceTimer = t
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
Exemplo n.º 13
0
        public static @event TriggerRegisterTimerEvent(trigger whichTrigger, real timeout, boolean periodic)
        {
            @event triEvent = new @event()
            {
                timerEventTime = timeout, timerEventPeriodic = periodic
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
Exemplo n.º 14
0
 public static boolean SaveTriggerEventHandle(hashtable table, integer parentKey, integer childKey, @event whichEvent)
 {
     table.Add(parentKey.ToString("x8") + childKey.ToString("x8"), whichEvent);
     return(true);
 }