Initial Check in of Mud Designer.
Includes initial Designer HOME and partial Project Manager
This commit is contained in:
parent
29fb9f1625
commit
c44c73c337
33 changed files with 1859 additions and 0 deletions
36
Project Manager/Program.cs
Normal file
36
Project Manager/Program.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Project_Manager
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
internal static MUDEngine.ProjectInformation project;
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
project = new MUDEngine.ProjectInformation();
|
||||
//Make sure all our paths are created before we start working with the editor.
|
||||
MUDEngine.Engine.ValidateProjectPath(Application.StartupPath);
|
||||
|
||||
//check if a project file exists, or use the new instance
|
||||
if (System.IO.File.Exists(Application.StartupPath + @"\project.xml"))
|
||||
{
|
||||
project = (MUDEngine.ProjectInformation)MUDEngine.XmlSerialization.Load(Application.StartupPath + @"\project.xml", project);
|
||||
}
|
||||
|
||||
//run the app
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new frmMain());
|
||||
|
||||
MUDEngine.XmlSerialization.Save(Application.StartupPath + @"\Data\project.xml", project);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue