public static bool TestEventTriggerAfterChangeValue(BoolState bs, bool newState, IEventRegister evnt) { bool triggered = false; evnt.Register(() => triggered = true); bs.Value = newState; return(triggered); }
public static void Register <T, K, J>(this IEventRegister <T, K, J> register, Action <T, K, J> act) => register.Register(new ActionEventCapsule <T, K, J>(act));
public static void Register(this IEventRegister register, Action act) => register.Register(new ActionEventCapsule(act));
public static void Register <T, J, K, W>(this IEventRegister <T, J, K, W> me, System.Action <T, J, K, W> callback) { me.Register(new DelegateEventListener <T, J, K, W>(callback)); }
public static void Register(this IEventRegister me, System.Action callback) { me.Register(new DelegateEventListener(callback)); }