コード例 #1
0
 /// <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);
 }
コード例 #2
0
 public void RemoveAllEventListeners()
 {
     FlowDispatcher.RemoveAllEventListeners();
 }
コード例 #3
0
 public void RemoveEventListener<T>(string _evtType, BaseEventHandler<T> _handler)
    where T : BaseEvent
 {
     FlowDispatcher.RemoveEventListener<T>(_evtType, _handler);
 }
コード例 #4
0
 public void RemoveEventListener(string _evtType, BaseEventHandler<FlowEvent> _handler)
 {
     // Inherit from EventDispatcher.
     FlowDispatcher.RemoveEventListener<FlowEvent>(_evtType, _handler);
 }
コード例 #5
0
 public void DispatchEvent<T>(string _evtType, T _evt)
     where T : BaseEvent
 {
     FlowDispatcher.DispatchEvent<T>(_evtType, _evt);
 }
コード例 #6
0
 /// <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);
 }