Designer:
- Corrected Project Information not being displayed when loaded for editing - Re-wrote Designer Save code to use the objects save code instead of FileManager. Resulted in 26% less code and cleaner source. - Project Explorer now checks Saved State of currently loaded object just like the Right-Click->Edit Object menu item does. Engine: - ProjectInformation.Save() now implemented. - BaseObject.Save() now implemented. All objects inheriting from BaseObject can save itself. Including all Environment objects (Realms,Zones, Rooms) and Currency objects.
This commit is contained in:
parent
42e6fef109
commit
a98e2bc069
3 changed files with 52 additions and 49 deletions
|
@ -146,6 +146,12 @@ namespace MudDesigner.MudEngine.GameManagement
|
|||
|
||||
public void Save(string filename)
|
||||
{
|
||||
string directory = Path.GetDirectoryName(filename);
|
||||
|
||||
if (!Directory.Exists(directory))
|
||||
Directory.CreateDirectory(directory);
|
||||
|
||||
FileManager.Save(filename, this);
|
||||
}
|
||||
|
||||
public object Load(string path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue