Exemplo n.º 1
0
 public static void TriggerAddAction(JassTrigger trigger, ManagedActionBase action)
 {
     try
     {
         var key = trigger.ToCTrigger();
         InternalNatives.handles[key] = trigger;
         HashSet <ManagedActionBase> bucket;
         if (!InternalNatives.actions.TryGetValue(key, out bucket))
         {
             InternalNatives.actions.Add(key, bucket = new HashSet <ManagedActionBase>());
         }
         bucket.Add(action);
     }
     catch (Exception e)
     {
         Trace.WriteLine("TriggerAddAction");
         Trace.WriteLine(e.ToString());
     }
 }
Exemplo n.º 2
0
 public static void TriggerAddAction(JassTrigger trigger, ManagedActionBase action)
 {
     InternalNatives.TriggerAddAction(trigger, action);
 }
Exemplo n.º 3
0
 private void triggerAddAction(JassTrigger trigger, ManagedActionBase action)
 {
     InternalNatives.TriggerAddAction(trigger, action);
 }
Exemplo n.º 4
0
 public static void TriggerAddAction(JassTrigger trigger, ManagedActionBase action)
 {
     Natives.instance.triggerAddAction(trigger, action);
 }
Exemplo n.º 5
0
 public void AddAction(ManagedActionBase action)
 {
     SafeNatives.TriggerAddAction(this, action);
 }