Visual Designer:

- Deleted from Solution.

Mud Designer:
 - Now checks for arguments, allowing the other editors to launch the Mud Designer with another editor supplied as an argument, allowing one editor to launch another one without needing to copy-paste a bunch of code.

MUD Engine:
 - BaseObject now sets default values for Script and Name so it's child classes won't need to.
 - Realm and Room no longer set Name and Script property default values.

Realm Explorer:
 - Now validates Script code.
 - Changed from using Managed Scripting Serialization to MUDEngine filesystem layer for saving/loading.
 - Added support for launching the Zone Builder from within the Realm Explorer.

Room Designer:
 - Changed from using Managed Scripting Serialization code, to MUD Engine Filesystem layer for saving/loading.

Zone Builder:
 - Initial UI Designs
 - Launches Room Designer for editing of rooms.
This commit is contained in:
Scionwest_cp 2009-11-28 00:30:40 -08:00
parent 0b350c3222
commit 24b5c3f687
23 changed files with 432 additions and 1130 deletions

View file

@ -19,8 +19,26 @@ namespace MudDesigner
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
MudHUB = new frmMain();
Application.Run(MudHUB);
bool bExit = false;
foreach (string arg in Environment.GetCommandLineArgs())
{
if (arg.ToLower().StartsWith("run="))
{
string app = arg.Substring("Run=".Length);
if (!app.EndsWith(".exe"))
app += ".exe";
ExecuteApp(app);
bExit = true;
}
}
if (!bExit)
{
MudHUB = new frmMain();
Application.Run(MudHUB);
}
}
internal static void ExecuteApp(string appName)
@ -83,7 +101,9 @@ namespace MudDesigner
try
{
process.Start();
MudHUB.Hide();
if (MudHUB != null)
MudHUB.Hide();
process.WaitForExit();
}
catch (Exception ex)
@ -93,7 +113,10 @@ namespace MudDesigner
finally
{
process = null;
MudHUB.Show();
//It will be null if the HUB was launched from another editor using it's arguments
//to launch another editor.
if (MudHUB != null)
MudHUB.Show();
}
}
}