Removed Realm information from Door.cs and added ConnectedRoom struct for holding the realm, zone and room name of the Room connected with the doorway.

This commit is contained in:
Scionwest_cp 2009-12-08 12:03:46 -08:00
parent dfbc92c5d0
commit f35e1b2ea7
2 changed files with 22 additions and 30 deletions

View file

@ -2,17 +2,19 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;
namespace MudDesigner.MudEngine.GameObjects.Environment
{
[XmlInclude(typeof(ConnectedRoom))]
public class Door
{
public enum AvailableDoorStates
public struct ConnectedRoom
{
Uninstalled,
Installed,
public string Realm;
public string Zone;
public string Room;
}
[Category("Door Settings")]
@ -38,26 +40,16 @@ namespace MudDesigner.MudEngine.GameObjects.Environment
set;
}
[Category("Door Settings")]
[DefaultValue(false)]
public bool IsRealmEntrance
{ get; set; }
[Category("Door Settings")]
[DefaultValue(false)]
public bool IsRealmExit { get; set; }
[Category("Door Settings")]
[Description("Sets if the door is installed and useable within the room or not.")]
[DefaultValue(AvailableDoorStates.Uninstalled)]
public AvailableDoorStates DoorState
[Browsable(false)]
public AvailableTravelDirections TravelDirection
{
get;
set;
}
[Browsable(false)]
public AvailableTravelDirections TravelDirection
[ReadOnly(true)]
[Category("Door Settings")]
public ConnectedRoom TravelRoom
{
get;
set;