- Re-wrote the Object Delete code. Reduced the code by 52% and increased readability. - Added additional search criteria to GetNodeType() - Removed the Application from running within a Try/Catch as it made debugging difficult.
36 lines
1,014 B
C#
36 lines
1,014 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Forms;
|
|
//MudEngine
|
|
using MudDesigner.MudEngine;
|
|
using MudDesigner.MudEngine.FileSystem;
|
|
using MudDesigner.MudEngine.GameManagement;
|
|
using MudDesigner.MudEngine.GameObjects;
|
|
using MudDesigner.MudEngine.GameObjects.Environment;
|
|
//Script Engine
|
|
using ManagedScripting;
|
|
using ManagedScripting.CodeBuilding;
|
|
|
|
namespace MudDesigner
|
|
{
|
|
static class Program
|
|
{
|
|
public static Form CurrentEditor { get; set; }
|
|
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
//Setup default application properties
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
//Run the toolkit
|
|
CurrentEditor = new Designer();
|
|
Application.Run(CurrentEditor);
|
|
}
|
|
}
|
|
}
|