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()); } }
public static void TriggerAddAction(JassTrigger trigger, ManagedActionBase action) { InternalNatives.TriggerAddAction(trigger, action); }
private void triggerAddAction(JassTrigger trigger, ManagedActionBase action) { InternalNatives.TriggerAddAction(trigger, action); }
public static void TriggerAddAction(JassTrigger trigger, ManagedActionBase action) { Natives.instance.triggerAddAction(trigger, action); }
public void AddAction(ManagedActionBase action) { SafeNatives.TriggerAddAction(this, action); }