MudEngine:
- Fixed command engine stalling when waiting for one users command to finish before starting another users command. - Commands are loaded into static List collections, but the Execute command itself is now no longer static. - Player.CommandSystem property added so each player has their own commandengine to process their input.
This commit is contained in:
parent
b3a672503f
commit
7c6ca6a2b9
5 changed files with 49 additions and 36 deletions
|
@ -53,9 +53,6 @@ namespace MudEngine.Commands
|
|||
}
|
||||
|
||||
player.Send("Welcome " + player.Name + "!");
|
||||
|
||||
//string playerName = player.Receive();
|
||||
//TODO: Read user input...
|
||||
return new CommandResults();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace MudEngine.Commands
|
|||
//Move the player into their new room
|
||||
player.Move(door.TravelDirection);
|
||||
|
||||
CommandResults cmd = CommandEngine.ExecuteCommand("Look", player);
|
||||
CommandResults cmd = player.CommandSystem.ExecuteCommand("Look", player);
|
||||
string lookValue = "";
|
||||
|
||||
if (cmd.Result.Length != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue