Пример #1
0
 /// <summary>
 /// Constructs a new instance of <see cref="RegisteredCommand"/>.
 /// </summary>
 /// <param name="command">Name of the command.</param>
 /// <param name="description">Short description of the command.</param>
 /// <param name="help">Extended description for the command.</param>
 /// <param name="callback">Callback function that is ran when the command is executed.</param>
 public RegisteredCommand(string command, string description, string help, ConCommandCallback callback)
 {
     Command     = command;
     Description = description;
     Help        = help;
     _callback   = callback;
 }
Пример #2
0
 /// <summary>
 /// Constructs a new instance of <see cref="RegisteredCommand"/>.
 /// </summary>
 /// <param name="command">Name of the command.</param>
 /// <param name="description">Short description of the command.</param>
 /// <param name="help">Extended description for the command.</param>
 /// <param name="callback">Callback function that is ran when the command is executed.</param>
 public RegisteredCommand(string command, string description, string help, ConCommandCallback callback)
 {
     Command = command;
     // Should these two be localized somehow?
     Description = description;
     Help        = help;
     Callback    = callback;
 }