muddesigner/MudEngine/GameObjects/Environment/Door.cs
Scionwest_cp dc311f5aa5 Added MudEngine Project to the Solution. I will slowly be moving the MudDesigner.MudEngine classes out of the Mud Designer Solution and into it's own.
Currently the Mud Designer still contains the old MudEngine classes until migration has been completed.
2010-07-15 18:53:38 -07:00

65 lines
1.6 KiB
C#

//Microsoft .NET Framework
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;
//MUD Engine
using MudEngine.GameObjects.Items;
namespace 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; }
[Category("Environment Information")]
[Description("The description displayed to the user when a 'Look' command is used.")]
public string Description { get; set; }
public Door()
{
LevelRequirement = 0;
IsLocked = false;
RequiredKey = new BaseItem();
}
public Door(AvailableTravelDirections travelDirection, string connectedRoom)
: this()
{
ConnectedRoom = connectedRoom;
TravelDirection = travelDirection;
}
}
}