- Zones can not be instanced without providing the owning realm in its constructor. - Started adding tooltips to the editors. - Zone Builder now checks if a Realm has been loaded yet or not prior to creating Zones. - Zone Builder will not allow Rooms to be created within new Zones until the Zone has been saved. - Zone Builder checks if a New Zone has not been saved yet prior to creating another New Zone - Renamed Room.ParentZone to Room.Zone to be consistent with the Realm and Zone classes.
50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.ComponentModel;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace MudDesigner.MudEngine.GameObjects.Environment
|
|
{
|
|
public class Room : BaseObject
|
|
{
|
|
[Category("Room Information")]
|
|
[ReadOnly(true)]
|
|
public string DoorList
|
|
{
|
|
get
|
|
{
|
|
string installed = "";
|
|
if (this.InstalledDoors.Count != 0)
|
|
{
|
|
foreach (Door d in InstalledDoors)
|
|
{
|
|
installed += d.TravelDirection.ToString() + ",";
|
|
}
|
|
if (InstalledDoors.Count >= 2)
|
|
{
|
|
installed = installed.Substring(0, installed.Length - 1);
|
|
}
|
|
return installed;
|
|
}
|
|
else
|
|
return "None Installed.";
|
|
}
|
|
}
|
|
|
|
[Browsable(false)]
|
|
public List<Door> InstalledDoors;
|
|
|
|
[Browsable(false)]
|
|
public string Zone
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public Room()
|
|
{
|
|
InstalledDoors = new List<Door>();
|
|
}
|
|
}
|
|
}
|