Ejemplo n.º 1
0
 /// <summary>
 /// Registers a command catcher which allows commands to be processed and their execution controlled by outside methods
 /// </summary>
 /// <param name="catcher">The method to catch the commands</param>
 /// <returns>True if registered, false otherwise</returns>
 public static bool RegisterCatcher(CommandCatcher catcher) => catchers.Add(catcher);
Ejemplo n.º 2
0
 /// <summary>
 /// Registers a command catcher which allows commands to be processed and their execution controlled by outside methods
 /// </summary>
 /// <param name="catcher">The method to catch the commands</param>
 public static void RegisterCommandCatcher(CommandCatcher catcher)
 {
     catchers.Add(catcher);
 }