MudEngine:

- Added support for the rScript engine to Game. It still contains code with MudEngine.Scripting.ScriptEngine, however it is not used by anything.
 - Added MudScriptCompiler. Custom Compiler created using ICompiler, included with the rScript engine.

* At this time, ScriptEngine is no longer used, and has been fully replaced by the rScript Engine and MudScriptCompiler. 
* Take note that the MudScriptCompiler only supports C# Keywords, and not some of the standard .NET Types. For a string, you'll need to use 'string' and not 'String'.
  I'm looking into why this is the case. Until the issue is fixed, none of the example game scripts will run.
This commit is contained in:
Scionwest_cp 2011-04-26 20:39:28 -07:00
parent ee532c5a03
commit 402be52e31
4 changed files with 201 additions and 4 deletions

View file

@ -251,8 +251,12 @@ namespace MudEngine.GameManagement
//scriptEngine.Initialize();
//Instance the new scripting engine
Scripting.Compiler = "C#";
Scripting.Compiler = "MudScriptCompiler";
if (!System.IO.File.Exists("MudEngine.dll"))
Log.Write("CRITICAL ERROR: Un-able to locate MudEngine.dll");
Scripting.AddAssemblyReference("MudEngine.dll");
if (!Scripting.Compile(DataPaths.Scripts))
{
Log.Write("CRITICAL ERROR: Game Script Repository failed to compile!");