mirror of
https://github.com/islehorse/HISP.git
synced 2025-07-13 18:48:31 +12:00
add help text"
This commit is contained in:
parent
f14355bae8
commit
02d32f46a8
2 changed files with 35 additions and 38 deletions
|
@ -18,12 +18,14 @@ namespace HISP.Game.Chat
|
|||
|
||||
public char CmdLetter;
|
||||
public string CmdName;
|
||||
public string CmdUsage;
|
||||
public Func<string,string[],User, bool> CmdCallback;
|
||||
public CommandRegister(char cmdLetter, string cmdName, Func<string, string[], User, bool> cmdCallback)
|
||||
public CommandRegister(char cmdLetter, string cmdName, string cmdUsage, Func<string, string[], User, bool> cmdCallback)
|
||||
{
|
||||
CmdLetter = cmdLetter;
|
||||
CmdName = cmdName.ToUpper(CultureInfo.InvariantCulture);
|
||||
CmdCallback = cmdCallback;
|
||||
CmdUsage = cmdUsage;
|
||||
|
||||
registeredComamnds.Add(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue