Files
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

72 lines
1.5 KiB
C#

using System;
namespace Server.Engines.Reports
{
public class ChartItem : PersistableObject
{
#region Type Identification
public static readonly PersistableType ThisTypeID = new PersistableType("ci", new ConstructCallback(Construct));
private static PersistableObject Construct()
{
return new ChartItem();
}
public override PersistableType TypeID
{
get
{
return ThisTypeID;
}
}
#endregion
private string m_Name;
private int m_Value;
public string Name
{
get
{
return this.m_Name;
}
set
{
this.m_Name = value;
}
}
public int Value
{
get
{
return this.m_Value;
}
set
{
this.m_Value = value;
}
}
private ChartItem()
{
}
public ChartItem(string name, int value)
{
this.m_Name = name;
this.m_Value = value;
}
public override void SerializeAttributes(PersistenceWriter op)
{
op.SetString("n", this.m_Name);
op.SetInt32("v", this.m_Value);
}
public override void DeserializeAttributes(PersistenceReader ip)
{
this.m_Name = Utility.Intern(ip.GetString("n"));
this.m_Value = ip.GetInt32("v");
}
}
}