public static void NodeSubscribe(this State state, JNode node, JNodeEvent eventFilter, Action <JNode> action) { var linkHandler = new StateLinkHandler(state); node.Subscribe(linkHandler, (n, e) => { if (e == eventFilter) { action(n); } }); }
public static void NodeSubscribe(this State state, JNode node, Action <JNode, JNodeEvent> action) { var linkHandler = new StateLinkHandler(state); node.Subscribe(linkHandler, action); }
public static Action <TRemote> DataBind <T, TRemote>(this State state, JData <T> node, Action <JData <T> > action, Func <TRemote, T> converter) { var linkHandler = new StateLinkHandler(state); return(node.Bind(linkHandler, action, converter)); }
public static Action <T> DataBind <T>(this State state, JData <T> node, Action <JData <T> > action) { var linkHandler = new StateLinkHandler(state); return(node.Bind(linkHandler, action)); }
public static void DataSubscribe <T>(this State state, JData <T> node, Action <JData <T> > action) { var linkHandler = new StateLinkHandler(state); node.Subscribe(linkHandler, action); }
public Timer(float seconds, Action onCompleted, State state) : this(seconds, onCompleted) { var linkHandler = new StateLinkHandler(state); this.updateCondition = () => linkHandler.IsActive; }
public Clock(float elapsedSeconds, State state) : this(elapsedSeconds) { var linkHandler = new StateLinkHandler(state); this.updateCondition = () => linkHandler.IsActive; }
public FrameTimer(int frames, Action onCompleted, State state) : this(frames, onCompleted) { var linkHandler = new StateLinkHandler(state); this.updateCondition = () => linkHandler.IsActive; }
public Clock(State state) : this() { var linkHandler = new StateLinkHandler(state); this.updateCondition = () => linkHandler.IsActive; }
public static IClock NewClock <T>(this State state) where T : ITimeDeltaEvent { var linkHandler = new StateLinkHandler(state); return(new Clock <T>(() => linkHandler.IsActive)); }
public static IFrameTimer NewFrameTimer <T>(this State state, int frames, Action onCompleted) where T : ITimeEvent { var linkHandler = new StateLinkHandler(state); return(new FrameTimer <T>(frames, onCompleted, () => linkHandler.IsActive)); }
public static ITimer NewTimer <T>(this State state, float seconds, Action onCompleted) where T : ITimeDeltaEvent { var linkHandler = new StateLinkHandler(state); return(new Timer <T>(seconds, onCompleted, () => linkHandler.IsActive)); }
public static IClock NewClock <T>(this State state, float elapsedSeconds) where T : ITimeDeltaEvent { var linkHandler = new StateLinkHandler(state); return(new Clock <T>(elapsedSeconds, () => linkHandler.IsActive)); }