MudEngine:

- Re-worked the command system. All commands now only need 2 arguments rather than 4. The actual command string and the Player
 - All commands updated to work with the new command system
 - Look command now works in the example MudGame 
 - Realm now contains InitialZone for the starting Zone within that Realm.
 - Zone now contains InitialRoom for the starting Room within that Zone.
 - All Environment objects now contains a Initial property and Add() method for adding child objects.
 - BaseCharacter now contains a copy of Game
 - Revised Realm.GetZone()
 - Revised Zone.GetRoom()
 - Removed Zone.RebuildRoomCollection as content is currently no longer stored using physical files.
 - Added GameManagement.Log for logging errors and warnings to file. Use Log.Write().
This commit is contained in:
Scionwest_cp 2010-07-25 16:56:15 -07:00
parent 0587b4a475
commit 486efa4fed
16 changed files with 213 additions and 114 deletions

View file

@ -46,14 +46,14 @@ namespace MudEngine.GameManagement
/// <param name="Name"></param>
/// <param name="Parameter"></param>
/// <returns></returns>
public static CommandResults ExecuteCommand(string command, BaseCharacter player, Game project, Room room)
public static CommandResults ExecuteCommand(string command, BaseCharacter player)
{
string commandKey = command.Insert(0, "Command");
foreach (string key in Commands.Keys)
{
if (commandKey.ToLower().Contains(key.ToLower()))
{
return Commands[key.ToLower()].Execute(command, player, project, room);
return Commands[key.ToLower()].Execute(command, player);
}
}