Ejemplo n.º 1
0
 public void HandleGameType(IGameTypeHandling engineObject)
 {
     eventHandlers.Add(engineObject.HandleGameType((o, e) =>
     {
         if (e.Type == this.GetType())
         {
             e.Callback(this);
         }
     }));
 }
Ejemplo n.º 2
0
 public void HandleGameType <T>(IGameTypeHandling native, Action <T> callback) where T : class
 {
     native.InvokeGameTypeHandle(native, new GameTypeEventArgs(typeof(T), o => callback(o as T)));
 }