Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
72
Scripts/Services/Reports/Objects/Charts/ChartItem.cs
Normal file
72
Scripts/Services/Reports/Objects/Charts/ChartItem.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user