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:
Scionwest_cp 2010-08-19 19:09:45 -07:00
parent f51e17af7b
commit 386d90df19
22 changed files with 678 additions and 114 deletions

View file

@ -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()))