MudEngine:
- Fixed BaseCharacter not returning content to the game loop - Fixed Zone.LinkRooms linking rooms backwards. MudGame: - Minor tweaks to the BuildRealms method - Minor tweaks to the Program.Main method.
This commit is contained in:
parent
e145d57682
commit
c965d5e97a
4 changed files with 20 additions and 19 deletions
|
@ -46,16 +46,17 @@ namespace MUDGame
|
|||
//Create the world
|
||||
BuildRealms();
|
||||
|
||||
//Player must be instanced AFTER BuildRealms as it needs Game.InitialRealm.InitialZone.InitialRoom
|
||||
//property so that it can set it's starting room correctly.
|
||||
player = new BaseCharacter(game);
|
||||
|
||||
// Start the game & server.
|
||||
game.Start();
|
||||
|
||||
if (!game.IsRunning)
|
||||
Console.WriteLine("Error starting game!\nReview Log file for details.");
|
||||
|
||||
//Player must be instanced AFTER BuildRealms as it needs Game.InitialRealm.InitialZone.InitialRoom
|
||||
//property so that it can set it's starting room correctly.
|
||||
player = new BaseCharacter(game);
|
||||
//Add the player to the game.
|
||||
//Note once the server is fully implemented the player will be generated automatically by Game.
|
||||
game.PlayerCollection.Add(player);
|
||||
|
||||
//Send game info to player
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue