Esempio n. 1
0
 public static limitop get(int i)
 {
     if (!_limitop.ContainsKey(i))
     {
         _limitop[i] = new limitop();
     }
     return(_limitop[i]);
 }
        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 TriggerRegisterGameStateEvent(trigger whichTrigger, gamestate whichState, limitop opcode, real limitval)
        {
            @event triEvent = new @event()
            {
                gamestateEvent = whichState
            };

            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 TriggerRegisterVariableEvent(trigger whichTrigger, @string varName, limitop opcode, real limitval)
 {
     throw new NotImplementedException();
 }