MudEngine:
- All commands are now required to have a Help property. MudGame: - Finished the Create command. Now allows for creating Realms, Zones and Rooms - Added LinkRoom command for linking Rooms. Not finished. - Added Help command. Typing Help prints all of the currently available commands. Typing Help 'CommandName' prints that Commands help property. Default commands print a help document.
This commit is contained in:
parent
f51e17af7b
commit
386d90df19
22 changed files with 678 additions and 114 deletions
|
@ -57,6 +57,11 @@ namespace MudEngine.GameManagement
|
|||
return null;
|
||||
}
|
||||
|
||||
public static String GetCommandName(IGameCommand command)
|
||||
{
|
||||
return command.Name.Substring("Command".Length);
|
||||
}
|
||||
|
||||
public static Boolean IsValidCommand(String Name)
|
||||
{
|
||||
if (CommandCollection.ContainsKey(Name.ToLower()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue