muddesigner/Mud Designer/MudEngine/GameObjects/Environment/Door.cs
Scionwest_cp f919539a89 Designer:
- Door Linking implementation started.
 - Duplicate directions are not allowed within a Room
 - If a User enters the name of a non-existing Room for linking to a Doorway, the Designer generates that Room for the User.
 - Room Editor now refreshes it's list of Rooms after the Doorway Manager closes so that auto generated Rooms are displayed.
 - Added new Doorway Manager UI

Engine:
 - Added Door.DoorwayExist() method to the Door class.
2010-01-21 23:33:14 -08:00

60 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;
using MudDesigner.MudEngine.UITypeEditors;
using MudDesigner.MudEngine.GameObjects.Items;
namespace MudDesigner.MudEngine.GameObjects.Environment
{
[XmlInclude(typeof(BaseItem))]
[Serializable]
public class Door
{
[Category("Door Settings")]
[DefaultValue(false)]
public bool IsLocked
{
get;
set;
}
[Category("Door Settings")]
[Browsable(false)]
public BaseItem RequiredKey
{
get;
set;
}
[Category("Door Settings")]
[DefaultValue(0)]
public int LevelRequirement
{
get;
set;
}
[Category("Door Settings")]
public AvailableTravelDirections TravelDirection { get; set; }
public string ConnectedRoom { get; set; }
public Door()
{
LevelRequirement = 0;
IsLocked = false;
RequiredKey = new BaseItem();
}
public Door(AvailableTravelDirections travelDirection, string connectedRoom)
: this()
{
ConnectedRoom = connectedRoom;
TravelDirection = travelDirection;
}
}
}