Room Designer:

* New Project added.

Mud HUB:
 * Moved ExecuteApp method from frmMain.cs to Program.cs
This commit is contained in:
Scionwest_cp 2009-11-07 10:29:00 -08:00
parent 03340af1ff
commit 2a8c023aca
15 changed files with 728 additions and 60 deletions

View file

@ -3,6 +3,11 @@ using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using MUDEngine;
using MUDEngine.Objects;
using MUDEngine.Objects.Environment;
using MUDEngine.FileSystem;
namespace Project_Manager
{
static class Program
@ -16,15 +21,15 @@ namespace Project_Manager
static void Main()
{
//Make sure all our paths are created before we start working with the editor.
MUDEngine.Engine.ValidateProjectPath(Application.StartupPath);
MUDEngine.FileSystem.FileSystem.FileType = MUDEngine.FileSystem.FileSystem.OutputFormats.XML;
Engine.ValidateProjectPath(Application.StartupPath);
FileSystem.FileType = FileSystem.OutputFormats.XML;
project = new MUDEngine.ProjectInformation();
project = new ProjectInformation();
//check if a project file exists, or use the new instance
if (System.IO.File.Exists(Application.StartupPath + @"\Data\project.xml"))
{
project = (MUDEngine.ProjectInformation)MUDEngine.FileSystem.FileSystem.Load(Application.StartupPath + @"\Data\project.xml", project);
project = (ProjectInformation)FileSystem.Load(Application.StartupPath + @"\Data\project.xml", project);
}
//run the app
@ -32,7 +37,7 @@ namespace Project_Manager
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain());
MUDEngine.FileSystem.FileSystem.Save(Application.StartupPath + @"\Data\project.xml", project);
FileSystem.Save(Application.StartupPath + @"\Data\project.xml", project);
}
}
}