public DelayedEvent(IEventable target, Event<IEventable> @event, int delay, object[] parameters) { Target = target; Event = @event; _delay = delay; Parameters = parameters; }
public DelayedEvent(IEventable target, Event <IEventable> @event, int delay, object[] parameters) { Target = target; Event = @event; _delay = delay; Parameters = parameters; }
public void PublishEvent(IEventable e) { if (!_eventHandlers.ContainsKey(e.GetName())) { return; } foreach (var eventHandler in _eventHandlers[e.GetName()]) { eventHandler(e); } }
/// <summary> /// このメソッドを呼び出してアップデートするものを追加 /// </summary> /// <param name="ev"></param> public void AddUpdate(IEventable ev) { updateList.Add(ev); }