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.
This commit is contained in:
parent
a52ccf8da9
commit
742b75eeb6
3 changed files with 13 additions and 1 deletions
|
@ -356,7 +356,7 @@ namespace MudEngine.GameManagement
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Log.Write("Saving " + PlayerCollection[i].Name);
|
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.
|
//Delete the last saved version of the World. We will dump the current version onto disk.
|
||||||
|
|
|
@ -91,6 +91,8 @@ namespace MudEngine.GameObjects.Environment
|
||||||
|
|
||||||
public override void Save(String path)
|
public override void Save(String path)
|
||||||
{
|
{
|
||||||
|
path = Path.Combine(path, "Rooms");
|
||||||
|
|
||||||
base.Save(path);
|
base.Save(path);
|
||||||
|
|
||||||
String filename = Path.Combine(path, Filename);
|
String filename = Path.Combine(path, Filename);
|
||||||
|
|
|
@ -7,4 +7,14 @@ MudGame.vshost.exe
|
||||||
MudGame.vshost.exe.manifest
|
MudGame.vshost.exe.manifest
|
||||||
Player
|
Player
|
||||||
temp
|
temp
|
||||||
|
</Value></Property><Property><Name>svn:ignore</Name><Value>Log.txt
|
||||||
|
MudEngine.dll
|
||||||
|
MudEngine.pdb
|
||||||
|
MudGame.exe
|
||||||
|
MudGame.pdb
|
||||||
|
MudGame.vshost.exe
|
||||||
|
MudGame.vshost.exe.manifest
|
||||||
|
Player
|
||||||
|
temp
|
||||||
|
Realms
|
||||||
</Value></Property></Properties></ItemProperties>
|
</Value></Property></Properties></ItemProperties>
|
Loading…
Add table
Add a link
Reference in a new issue