mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
- Removed unneeded usings - World chat log now has a Config option. Turned off by default now. - Added two new timer priorities. - Fixed a crash with box of ropes. - Consolidation of the Pathing movements and algorithms. - Correctly makes sure you are inside the house you are trying to place addons in.
65 lines
1.4 KiB
C#
65 lines
1.4 KiB
C#
namespace Server.Items
|
|
{
|
|
public class SubtextSign : Sign
|
|
{
|
|
private string m_Subtext;
|
|
[Constructable]
|
|
public SubtextSign(SignType type, SignFacing facing, string subtext)
|
|
: base(type, facing)
|
|
{
|
|
m_Subtext = subtext;
|
|
}
|
|
|
|
[Constructable]
|
|
public SubtextSign(int itemID, string subtext)
|
|
: base(itemID)
|
|
{
|
|
m_Subtext = subtext;
|
|
}
|
|
|
|
public SubtextSign(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
[CommandProperty(AccessLevel.GameMaster)]
|
|
public string Subtext
|
|
{
|
|
get
|
|
{
|
|
return m_Subtext;
|
|
}
|
|
set
|
|
{
|
|
m_Subtext = value;
|
|
InvalidateProperties();
|
|
}
|
|
}
|
|
|
|
public override void AddNameProperties(ObjectPropertyList list)
|
|
{
|
|
base.AddNameProperties(list);
|
|
|
|
if (!string.IsNullOrEmpty(m_Subtext))
|
|
list.Add(m_Subtext);
|
|
}
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
|
|
writer.Write(0);
|
|
|
|
writer.Write(m_Subtext);
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
|
|
int version = reader.ReadInt();
|
|
|
|
m_Subtext = reader.ReadString();
|
|
}
|
|
}
|
|
}
|