コード例 #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);
コード例 #2
0
ファイル: Console.cs プロジェクト: RicardoTheCoder/SRMLExtras
 /// <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);
 }