MudEngine:
- Player movement command now fully implemented. - Game.GetRealm() added to retrieve a Realm within the games RealmCollection property - Game.End() added to perform game ending duties and shut down the Server - Server now loses opened threads. - Player.Move() added to move the player from Room to Room. - Room.DoorwayExist() tweaked to work with the new way Environments are managed. MudGame: - Now executes the Look command on startup so the player can see where they are located at. - Implements the new Game.End() method and fixes the game hanging upon exit.
This commit is contained in:
parent
19e3ec0936
commit
70533582a6
7 changed files with 57 additions and 10 deletions
|
@ -33,7 +33,9 @@ namespace MudEngine.Commands
|
|||
if (door.TravelDirection == direction)
|
||||
{
|
||||
//TODO: Player.Move() method needed so room loading is handled by player code.
|
||||
player.CurrentRoom = (Room)player.CurrentRoom.Load(door.ConnectedRoom);
|
||||
//Old Code: player.CurrentRoom = (Room)player.CurrentRoom.Load(door.ConnectedRoom);
|
||||
|
||||
player.Move(direction);
|
||||
|
||||
CommandResults cmd = CommandEngine.ExecuteCommand("Look", player);
|
||||
string lookValue = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue