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.
72 lines
2.1 KiB
C#
72 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace MUDCompiler
|
|
{
|
|
public partial class frmCompiler : Form
|
|
{
|
|
//MudEngine.GameManagement.Game game = new MudEngine.GameManagement.Game();
|
|
|
|
public frmCompiler()
|
|
{
|
|
InitializeComponent();
|
|
|
|
MessageBox.Show("Mud Compiler application needs to be re-wrote to support Alpha 2.0");
|
|
}
|
|
|
|
private void openDirectoryToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
/* rScripting.CompileEngine engine = new rScripting.CompileEngine();
|
|
|
|
FolderBrowserDialog browse = new FolderBrowserDialog();
|
|
browse.ShowDialog();
|
|
|
|
if (String.IsNullOrEmpty(browse.SelectedPath))
|
|
{
|
|
txtConsole.Text = "Compilation canceled.";
|
|
return;
|
|
}
|
|
|
|
bool isOK = engine.Compile(browse.SelectedPath);
|
|
|
|
if (isOK)
|
|
txtConsole.Text = "Compiled without error.";
|
|
else
|
|
txtConsole.Text = engine.Errors;
|
|
*/ }
|
|
|
|
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
Application.Exit();
|
|
}
|
|
|
|
private void openScriptToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
/* rScripting.CompileEngine engine = new rScripting.CompileEngine();
|
|
engine.Compiler = "MudScriptCompiler";
|
|
|
|
OpenFileDialog browse = new OpenFileDialog();
|
|
browse.ShowDialog();
|
|
|
|
System.IO.FileInfo file = new System.IO.FileInfo(browse.FileName);
|
|
|
|
if (String.IsNullOrEmpty(browse.FileName))
|
|
{
|
|
txtConsole.Text = "Compilation canceled.";
|
|
return;
|
|
}
|
|
|
|
bool isOK = engine.Compile(file);
|
|
if (isOK)
|
|
txtConsole.Text = "Compiled without error.";
|
|
else
|
|
txtConsole.Text = engine.Errors;
|
|
*/ }
|
|
}
|
|
}
|