- Renamed FileSystem.FileSystem.cs to FileSystem.FileManager.cs
- Moved ValidateDataPaths() from Engine.cs to FileManager.cs - Moved GetDataPath() from Engine.cs to FileManager.cs - Moved SaveDataTypes out from Engine.cs into it's own file. MudEngine.FileSystem.SaveDataTypes.cs - Moved _CurrentRoom, _CurrentZone, _CurrentRealm and _ScriptEngine out from all editors containing those Fields, and placed them as static properties within Program.cs Room, Zone, Realm and ScriptEngine Properties - Created 3 new Interfaces. IGameObject, IQuest and IRuleSet. - Created QuestSetup class to begin working on Quest Editor at some point.
This commit is contained in:
parent
c1d60639f5
commit
379c6f844d
17 changed files with 327 additions and 239 deletions
|
@ -14,19 +14,24 @@ namespace MudDesigner
|
|||
static class Program
|
||||
{
|
||||
public static ProjectInformation Project{ get; set; }
|
||||
public static Realm Realm { get; set; }
|
||||
public static Zone Zone {get;set;}
|
||||
public static Room Room { get; set; }
|
||||
public static ManagedScripting.ScriptingEngine ScriptEngine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Engine.ValidateDataPaths();
|
||||
FileSystem.FileType = FileSystem.OutputFormats.XML;
|
||||
FileManager.ValidateDataPaths();
|
||||
FileManager.FileType = FileManager.OutputFormats.XML;
|
||||
Project = new ProjectInformation();
|
||||
|
||||
string filename = System.IO.Path.Combine(Engine.GetDataPath(Engine.SaveDataTypes.Root), "Project.Xml");
|
||||
string filename = System.IO.Path.Combine(FileManager.GetDataPath(SaveDataTypes.Root), "Project.Xml");
|
||||
if (System.IO.File.Exists(filename))
|
||||
Project = (ProjectInformation)FileSystem.Load(filename, Project);
|
||||
Project = (ProjectInformation)FileManager.Load(filename, Project);
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue