muddesigner/MUDEngine/Objects/Environment/Room.cs
Scionwest_cp 82e43cb4f2 MUD Engine:
- BaseObject now sets the default value for Name programmatically for the editors propertygrids.
 - Room, Realm and Zone no longer set their Name Properties to their default value, BaseObject handles it.

Room Designer:
 - Scripts where'nt being saved, this has been corrected.
- Rooms wheren't being loaded when supplied via the command line argument (Method is used by the Zone Builder)
 - Displaying scripts within the Designer is now fixed.

Zone Builder:
 - Now displays the Zone Object Properties in the property grid.
2009-11-28 08:01:19 -08:00

74 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Xml.Serialization;
namespace MUDEngine.Objects.Environment
{
public class Room : BaseObject
{
[Category("Room Senses")]
[DefaultValue("You don't smell anything unsual.")]
public string Smell
{
get;
set;
}
[Category("Room Senses")]
[DefaultValue("You hear nothing of interest.")]
public string Listen
{
get;
set;
}
[Category("Room Senses")]
[DefaultValue("You feel nothing.")]
public string Feel
{
get;
set;
}
[Category("Room Information")]
[DefaultValue(false)]
public bool StatDrain
{
get;
set;
}
[Category("Room Information")]
[DefaultValue(0)]
public int StatDrainAmount
{
get;
set;
}
[Category("Room Information")]
[DefaultValue(false)]
public bool IsSafeRoom
{
get;
set;
}
[Browsable(false)]
public List<Door> InstalledDoors;
public Room()
{
InstalledDoors = new List<Door>();
this.Feel = "You feel nothing.";
this.Listen = "You hear nothing of interest.";
this.Smell = "You don't smell anything unsual.";
this.StatDrainAmount = 0;
}
private Controls.RoomControl _Control;
}
}