Exemple #1
0
 public override void Raise(GameEventHandler eventHandler = null)
 {
     if (eventHandler == null)
     {
         GameEventHandler.TriggerEvent <int>(this, parameter);
     }
     else
     {
         eventHandler.TriggerInstanceEvent <int>(this, parameter);
     }
 }
Exemple #2
0
 public void Raise <T, U, V>(T arg1, U arg2, V arg3, GameEventHandler eventHandler = null)
 {
     if (eventHandler == null)
     {
         GameEventHandler.TriggerEvent <T, U, V>(this, arg1, arg2, arg3);
     }
     else
     {
         eventHandler.TriggerInstanceEvent <T, U, V>(this, arg1, arg2, arg3);
     }
 }
Exemple #3
0
 public virtual void Raise(GameEventHandler eventHandler = null)
 {
     if (eventHandler == null)
     {
         GameEventHandler.TriggerEvent(this);
     }
     else
     {
         eventHandler.TriggerInstanceEvent(this);
     }
 }
Exemple #4
0
 public void Raise <T>(T value, GameEventHandler eventHandler = null)
 {
     if (eventHandler == null)
     {
         GameEventHandler.TriggerEvent <T>(this, value);
     }
     else
     {
         eventHandler.TriggerInstanceEvent <T>(this, value);
     }
 }