From 742b75eeb62b37fdbca7cdd3a07ba7d2c0abf310 Mon Sep 17 00:00:00 2001 From: Scionwest_cp Date: Sat, 14 Aug 2010 00:32:10 -0700 Subject: [PATCH] MudEngine: - World Environment now fully saves to disk; only works with a player that has Admin privileges (All new players currently default to Admin privileges for ease of testing. Use SaveWorld command to save. - Adjusted how the Game class saved the players to be more efficient. --- MudEngine/GameManagement/Game.cs | 2 +- MudEngine/GameObjects/Environment/Room.cs | 2 ++ MudGame/bin/Debug/..svnbridge/.svnbridge | 10 ++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/MudEngine/GameManagement/Game.cs b/MudEngine/GameManagement/Game.cs index 3efff3f..56a0e7a 100644 --- a/MudEngine/GameManagement/Game.cs +++ b/MudEngine/GameManagement/Game.cs @@ -356,7 +356,7 @@ namespace MudEngine.GameManagement continue; Log.Write("Saving " + PlayerCollection[i].Name); - PlayerCollection[i].Save(Path.Combine(DataPaths.Players, PlayerCollection[i].Filename)); + PlayerCollection[i].ExecuteCommand("Save"); } //Delete the last saved version of the World. We will dump the current version onto disk. diff --git a/MudEngine/GameObjects/Environment/Room.cs b/MudEngine/GameObjects/Environment/Room.cs index 44a40c4..0cc9079 100644 --- a/MudEngine/GameObjects/Environment/Room.cs +++ b/MudEngine/GameObjects/Environment/Room.cs @@ -91,6 +91,8 @@ namespace MudEngine.GameObjects.Environment public override void Save(String path) { + path = Path.Combine(path, "Rooms"); + base.Save(path); String filename = Path.Combine(path, Filename); diff --git a/MudGame/bin/Debug/..svnbridge/.svnbridge b/MudGame/bin/Debug/..svnbridge/.svnbridge index aa5dc6e..20754ee 100644 --- a/MudGame/bin/Debug/..svnbridge/.svnbridge +++ b/MudGame/bin/Debug/..svnbridge/.svnbridge @@ -7,4 +7,14 @@ MudGame.vshost.exe MudGame.vshost.exe.manifest Player temp +svn:ignoreLog.txt +MudEngine.dll +MudEngine.pdb +MudGame.exe +MudGame.pdb +MudGame.vshost.exe +MudGame.vshost.exe.manifest +Player +temp +Realms \ No newline at end of file