muddesigner/Mud Designer/MudEngine/GameObjects/Environment/Door.cs
Scionwest_cp 5f9a707b4c Engine:
- Added Character class PlayerBasic for the lowest authorized level
 - Added Character class PlayerAdmin that will provide some additional higher level authorized commands
 - Added Character class PlayerGM that will provide high level authorized commands
 - Added Factions class for future use of factions
 - Added Class class for future use of classes
 - Added Race class for future use of Races
 - Added NPCFriendly class for future use of Friendly NPCs
 - Added NPCHostile class for future use of Monster NPCs
 - Added CommandWalk class for future walk command
 - Added CommandGMTeleport class for future GM teleporting support.
 - Added Description property to the Door class.
2010-01-22 22:47:37 -08:00

64 lines
1.6 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; }
[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;
}
}
}