public static unitevent get(int i)
 {
     if (!_unitevent.ContainsKey(i))
     {
         _unitevent[i] = new unitevent();
     }
     return(_unitevent[i]);
 }
        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 TriggerRegisterFilterUnitEvent(trigger whichTrigger, unit whichUnit, unitevent whichEvent, boolexpr filter)
 {
     throw new NotImplementedException();
 }