Exemple #1
0
 public DelayedEvent(IEventable target, Event<IEventable> @event, int delay, object[] parameters)
 {
     Target = target;
     Event = @event;
     _delay = delay;
     Parameters = parameters;
 }
Exemple #2
0
 public DelayedEvent(IEventable target, Event <IEventable> @event, int delay, object[] parameters)
 {
     Target     = target;
     Event      = @event;
     _delay     = delay;
     Parameters = parameters;
 }
Exemple #3
0
    public void PublishEvent(IEventable e)
    {
        if (!_eventHandlers.ContainsKey(e.GetName()))
        {
            return;
        }

        foreach (var eventHandler in _eventHandlers[e.GetName()])
        {
            eventHandler(e);
        }
    }
Exemple #4
0
 /// <summary>
 /// このメソッドを呼び出してアップデートするものを追加
 /// </summary>
 /// <param name="ev"></param>
 public void AddUpdate(IEventable ev)
 {
     updateList.Add(ev);
 }