public ActionEventClass SubscribeCancelled(ActionDelegate del, int priority = 0) { ActionEventClass eventClass = new ActionEventClass(del, priority); eventClass.Cancelled = true; sortedDelegates.InsertIntoSortedList(eventClass); return(eventClass); }
public ActionEventClass SubscribePerformed(ActionDelegate del, int priority = 0) { ActionEventClass eventClass = new ActionEventClass(del, sortedDelegates.Count); eventClass.Performed = true; sortedDelegates.Add(eventClass); return(eventClass); }
public void UnSubscribe(ActionEventClass ev) { sortedDelegates.Remove(ev); }