示例#1
0
 /// <summary>
 /// Creates a new command handler.
 /// </summary>
 /// <param name="name">The name of the command.</param>
 /// <param name="executor">A delegate to use to execute the command.</param>
 /// <param name="compactExecutor">A delegate to use to execute the command in compact mode.</param>
 /// <param name="commandStrings">The strings that be used to trigger the command.</param>
 public CommandHandler(string name, CommandExecutor executor, CompactExecutor compactExecutor, params string[] commandStrings)
 {
     Name            = name;
     Executor        = executor;
     CompactExecutor = compactExecutor;
     CommandStrings  = commandStrings;
 }
示例#2
0
 /// <summary>
 /// Creates a new command handler.
 /// </summary>
 /// <param name="name">The name of the command.</param>
 /// <param name="anonymousExecutor">A delegate to use to execute the command anonymously.</param>
 /// <param name="compactExecutor">A delegate to use to execute the command in compact mode.</param>
 /// <param name="commandStrings">The strings that be used to trigger the command.</param>
 public CommandHandler(string name, AnonymousExecutor anonymousExecutor, CompactExecutor compactExecutor, params string[] commandStrings)
 {
     Name = name;
     AnonymousExecutor = anonymousExecutor;
     CompactExecutor   = compactExecutor;
     CommandStrings    = commandStrings;
 }