/// <summary> /// Dispatch a FLOW event from another FlowEventDispatcher /// </summary> /// <typeparam name="T"></typeparam> /// <param name="_evt"></param> public void RedispatchFlowEvent<T>(T _evt) where T : FlowEvent { Assert.AreNotEqual("", _evt.eventType, "Redispatched event's type should initiated in dispatch from others"); FlowDispatcher.DispatchFlowEvent<T>(_evt.eventType, _evt, false); }
public void RemoveAllEventListeners() { FlowDispatcher.RemoveAllEventListeners(); }
public void RemoveEventListener<T>(string _evtType, BaseEventHandler<T> _handler) where T : BaseEvent { FlowDispatcher.RemoveEventListener<T>(_evtType, _handler); }
public void RemoveEventListener(string _evtType, BaseEventHandler<FlowEvent> _handler) { // Inherit from EventDispatcher. FlowDispatcher.RemoveEventListener<FlowEvent>(_evtType, _handler); }
public void DispatchEvent<T>(string _evtType, T _evt) where T : BaseEvent { FlowDispatcher.DispatchEvent<T>(_evtType, _evt); }
/// <typeparam name="T"></typeparam> /// <param name="_evtType"></param> /// <param name="_evt"></param> public void DispatchFlowEvent<T>(string _evtType, T _evt, bool _isOriginal = true) where T : FlowEvent { FlowDispatcher.DispatchFlowEvent<T>(_evtType, _evt, _isOriginal); }