- Renamed SaveSelected() to SaveObject() - Added additional commenting - Re-formatted the document - Moved the search code out from the text box and into its own method SearchForObject() - Changed search method for the text box from txtSearch_Enter to txtSearch_KeyDown - Re-write of object save code finished. Engine: - Realm.GetZone() re-wrote to use LINQ. - Zone.GetRoom() renamed to Zone.GetRoomByName() for searching for a Room by name - Zone.GetRoomByFilename() added for searching by filename for a Room. - Re-wrote Adding Zones into Realms via the UIRealmControl. Uses 54% less source, and better readability. - UIRealmEditor now stores a proper backup of Zones incase of UIRealmControl instancing failure.
36 lines
994 B
C#
36 lines
994 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 Designer Designer{ 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
|
|
Designer = new Designer();
|
|
Application.Run(Designer);
|
|
}
|
|
}
|
|
}
|