Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,70 @@
using System;
using System.Xml;
namespace Server.Accounting
{
public class AccountTag
{
private string m_Name, m_Value;
/// <summary>
/// Constructs a new AccountTag instance with a specific name and value.
/// </summary>
/// <param name="name">Initial name.</param>
/// <param name="value">Initial value.</param>
public AccountTag(string name, string value)
{
this.m_Name = name;
this.m_Value = value;
}
/// <summary>
/// Deserializes an AccountTag instance from an xml element.
/// </summary>
/// <param name="node">The XmlElement instance from which to deserialize.</param>
public AccountTag(XmlElement node)
{
this.m_Name = Utility.GetAttribute(node, "name", "empty");
this.m_Value = Utility.GetText(node, "");
}
/// <summary>
/// Gets or sets the name of this tag.
/// </summary>
public string Name
{
get
{
return this.m_Name;
}
set
{
this.m_Name = value;
}
}
/// <summary>
/// Gets or sets the value of this tag.
/// </summary>
public string Value
{
get
{
return this.m_Value;
}
set
{
this.m_Value = value;
}
}
/// <summary>
/// Serializes this AccountTag instance to an XmlTextWriter.
/// </summary>
/// <param name="xml">The XmlTextWriter instance from which to serialize.</param>
public void Save(XmlTextWriter xml)
{
xml.WriteStartElement("tag");
xml.WriteAttributeString("name", this.m_Name);
xml.WriteString(this.m_Value);
xml.WriteEndElement();
}
}
}