MudCompiler: No longer works. Needs to be re-wrote to support the new Alpha 2.0 engine MudDesigenr: Removed most of the forms since we are not working on it. Only form left is Project Manager, which will be removed shortly as well. MudGame: No longer runs. All of the source code was removed due to MudEngine Alpha 2.0 source changing drastically. MudEngine: Alpha 2.0 source code finally checked-in. It contains the full re-build of the engine. A lot of new abstract classes have been added.
40 lines
No EOL
1.6 KiB
C#
40 lines
No EOL
1.6 KiB
C#
using System;
|
|
using System.CodeDom.Compiler;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MudEngine.Core
|
|
{
|
|
/// <summary>
|
|
/// Used to implement a wrapper for an existing compiler.
|
|
/// </summary>
|
|
public interface ICompiler
|
|
{
|
|
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);
|
|
}
|
|
} |