muddesigner/Mud Designer/Program.cs
Scionwest_cp 4ebce0a987 Project Settings:
- Cleaned up the code within the editor.

Realm Explorer:
 - Some UI adjustments.

Room Designer:
 - Program.Room is no longer re-instanced after the room designer saves a room.

Toolkit Launcher:
 - Zone and Room edior buttons removed. They can now only be accessed via the Realm Explorer.
 - Changed the Toolkit Title.

Zone Builder:
 - Began Room Doorway linking UI design.

Mud Engine:
 - Zones now instance the Rooms collection.
 - Travel Directions now moved from Environment namespace and placed within Objects namespace.
 - Travel Directions now contains a class and method for returning the opposite direction provided. (ex: GetReverseDirection(TravelDirections.West) returns East).
2009-12-06 00:13:43 -08:00

43 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
//MudEngine
using MudDesigner.MudEngine;
using MudDesigner.MudEngine.Attributes;
using MudDesigner.MudEngine.FileSystem;
using MudDesigner.MudEngine.Objects;
using MudDesigner.MudEngine.Objects.Environment;
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; }
public static Form CurrentEditor { get; set; }
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Project = new ProjectInformation();
FileManager.ValidateDataPaths();
FileManager.FileType = FileManager.OutputFormats.XML;
string filename = System.IO.Path.Combine(FileManager.GetDataPath(SaveDataTypes.Root), "Project.Xml");
if (System.IO.File.Exists(filename))
Project = (ProjectInformation)FileManager.Load(filename, Project);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MudDesigner.Editors.ToolkitLauncher());
}
}
}