Re-wrote the MudCompiler project. It now supports compiling whole directories or single files using the new scripting engine.
This commit is contained in:
parent
cd68f3d042
commit
7bc89b294b
5 changed files with 357 additions and 37 deletions
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using MudEngine.Scripting;
|
||||
|
||||
|
@ -9,44 +10,10 @@ namespace MUDCompiler
|
|||
{
|
||||
class Program
|
||||
{
|
||||
[STAThread()]
|
||||
static void Main(String[] args)
|
||||
{
|
||||
Console.WriteLine("===========================");
|
||||
Console.WriteLine("MUD Engine Content Compiler");
|
||||
Console.WriteLine("Version 0.1");
|
||||
Console.WriteLine("===========================");
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("1): Compile Scripts");
|
||||
Console.WriteLine("2): Exit Compiler");
|
||||
//Console.Write("Enter Selection: ");
|
||||
Console.WriteLine("Out of engine compiling is currently not supported. Please review the documentation regarding in-engine compiling.");
|
||||
|
||||
String command = Console.ReadLine();
|
||||
|
||||
//command error checking.
|
||||
if (String.IsNullOrEmpty(command))
|
||||
{
|
||||
Console.WriteLine("Invalid Command!");
|
||||
System.Threading.Thread.Sleep(1000); //wait before shutting down so user sees invalid command
|
||||
}
|
||||
else if (Convert.ToInt16(command) >= 3)
|
||||
{
|
||||
Console.WriteLine("Invalid Command!");
|
||||
System.Threading.Thread.Sleep(1000); //wait before shutting down so user sees invalid command
|
||||
}
|
||||
|
||||
switch (Convert.ToInt16(command))
|
||||
{
|
||||
case 1:
|
||||
CompileScripts();
|
||||
break;
|
||||
case 2:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
static void CompileScripts()
|
||||
{
|
||||
Application.Run(new frmCompiler());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue