Currency Editor:

* Program.cs - Removed test code.

Mud Designer:
 * Program.cs - Message box added informing developers why the editors wont launch if the source is not placed in the _InstallLocation.

Mud Engine:
 * Now includes a reference to the ManagedScripting assembly.
 * BaseObject.cs - Added ScriptObject property.

Visual Designer:
 * frmDesigner.cs - Removed File->Close test save code.
This commit is contained in:
Scionwest_cp 2009-11-24 16:10:36 -08:00
parent ef10e79a4c
commit 1bac98a47e
5 changed files with 41 additions and 5 deletions

View file

@ -22,3 +22,17 @@ namespace CurrencyEditor
} }
} }
} }
namespace Project2
{
public class MyClass
{
public string DoSomething(string argument1, string argument2)
{
if (!argument1.Equals(argument2))
return "The two arguments are different";
else
return "The two arguments are the same";
}
}
}

View file

@ -31,6 +31,10 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="ManagedScriptingWIN, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\ManagedScriptingWIN.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core"> <Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework> <RequiredTargetFramework>3.5</RequiredTargetFramework>

View file

@ -23,5 +23,11 @@ namespace MUDEngine.Objects
get; get;
set; set;
} }
public ManagedScripting.ScriptObject Script
{
get;
set;
}
} }
} }

View file

@ -31,7 +31,23 @@ namespace MudDesigner
//If running in debug mode we need to hard-code the paths as during normal running of the apps //If running in debug mode we need to hard-code the paths as during normal running of the apps
//all of the apps are running within the Apps directory. //all of the apps are running within the Apps directory.
#if DEBUG #if DEBUG
string[] apps = System.IO.Directory.GetFiles(_InstallLocation, "*.exe", System.IO.SearchOption.AllDirectories); string[] apps = new string[] { };
try
{
apps = System.IO.Directory.GetFiles(_InstallLocation, "*.exe", System.IO.SearchOption.AllDirectories);
}
catch
{
MessageBox.Show("Error: The directory '" + _InstallLocation + "' does not exist!\n\n"
+ "The engine has a #DEBUG constant defined in the project properties."
+ "\nIf you are wanting to run the Designer from within Visual Studio, please change the\n"
+ "MudDesigner.Program._InstallLocation Field to the current ROOT directory of your source code."
+ "\n\nIf you are running a Release build of the engine, with all of the editors contained within the"
+ " same directory, then edit the MudDesigner project properties to remove the #DEBUG constant."
+ "\n" + appName + " will not load.",
"Mud Designer", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
List<string> legalApps = new List<string>(); List<string> legalApps = new List<string>();
foreach (string app in apps) foreach (string app in apps)

View file

@ -45,10 +45,6 @@ namespace VisualDesigner
/// <param name="e"></param> /// <param name="e"></param>
private void closeToolStripMenuItem_Click(object sender, EventArgs e) private void closeToolStripMenuItem_Click(object sender, EventArgs e)
{ {
foreach (ScriptObject obj in engine.GetObjects())
{
XmlSerialization.Save(obj.Name + ".xml", obj);
}
Application.Exit(); Application.Exit();
} }