XMLData class added. This will manage the saving and loading of all scripted objects during runtime. The saved files will be XML formatted.

Added rScript files to the engine.  These have not been implemented and currently don't work with the engine.
BaseScript has been modified to support the new XMLData class for saving data.
This commit is contained in:
Scionwest_cp 2012-02-29 20:06:14 -08:00
parent fc27d9fc22
commit 38bdf75bf1
16 changed files with 1174 additions and 25 deletions

View file

@ -0,0 +1,43 @@
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
namespace MudEngine.Scripting
{
/// <summary>
/// Used to implement a wrapper for an existing compiler.
/// </summary>
public interface ICompiler
{
#if WINDOWS_PC
CompilerResults Results { get; set; }
/// <summary>
/// The file extension used for the script files.
/// </summary>
String ScriptExtension { get; set; }
/// <summary>
/// Provides a collection of Assemblies that the compiler will add to its reference list.
/// </summary>
List<String> AssemblyReferences { get; set; }
/// <summary>
/// Provides compiling options to various compilers, if they support this feature.
/// </summary>
Dictionary<String, String> CompilerOptions { get; set; }
/// <summary>
/// Compiles the source files found within the scriptRepository directory matching the ICompiler.ScriptExtension
/// The Compiler defaults to the C# 4.0 compiler if none other is supplied via the ICompiler.CompilerOptions argument.
/// </summary>
/// <param name="param">Compiler Parameters that can be supplied to customize the compilation of the source.</param>
/// <returns>Returns true if the compilation was completed without error.</returns>
Boolean Compile(CompilerParameters param, String scriptRepository);
Boolean Compile(CompilerParameters param, System.IO.FileInfo scriptFile);
Boolean Compile(CompilerParameters param, String[] scriptSource);
#endif
}
}