* Moved editor buttons onto a Tab control, future test editors will be placed on a separate tab titled 'Testing Editors' MUDEngine: * Currency.cs - Added Default Values to Properties * Door.cs - Added initial properties and door state * ProjectInformation.cs - Removed StartingLocation enum and moved to Objects/Environment/InitialLocation.cs * Room.cs - Added initial properties * TravelDirections.cs - Added initial travel direction enum. Room Editor binds to this enum. Additional directions added in the future will automatically be added to the Room Designer. * ProjectInformation.cs - ProjectName property renamed to GameTitle. Room Designer: * User interface re-constructed and is closer to the final state. Shouldn't change much from it's current configuration.
50 lines
1 KiB
C#
50 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
using System.ComponentModel;
|
|
|
|
namespace MUDEngine.Objects.Environment
|
|
{
|
|
public class Door
|
|
{
|
|
public enum AvailableDoorStates
|
|
{
|
|
Uninstalled,
|
|
Installed,
|
|
}
|
|
|
|
[Category("Door Settings")]
|
|
[DefaultValue(false)]
|
|
public bool IsLocked
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Category("Door Settings")]
|
|
public string RequiredKey
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Category("Door Settings")]
|
|
[DefaultValue(0)]
|
|
public int LevelRequirement
|
|
{
|
|
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
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
}
|