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,68 @@
using System;
namespace Server.Engines.Reports
{
public abstract class Chart : PersistableObject
{
protected string m_Name;
protected string m_FileName;
protected ChartItemCollection m_Items;
public Chart()
{
this.m_Items = new ChartItemCollection();
}
public string Name
{
get
{
return this.m_Name;
}
set
{
this.m_Name = value;
}
}
public string FileName
{
get
{
return this.m_FileName;
}
set
{
this.m_FileName = value;
}
}
public ChartItemCollection Items
{
get
{
return this.m_Items;
}
}
public override void SerializeAttributes(PersistenceWriter op)
{
op.SetString("n", this.m_Name);
op.SetString("f", this.m_FileName);
}
public override void DeserializeAttributes(PersistenceReader ip)
{
this.m_Name = Utility.Intern(ip.GetString("n"));
this.m_FileName = Utility.Intern(ip.GetString("f"));
}
public override void SerializeChildren(PersistenceWriter op)
{
for (int i = 0; i < this.m_Items.Count; ++i)
this.m_Items[i].Serialize(op);
}
public override void DeserializeChildren(PersistenceReader ip)
{
while (ip.HasChild)
this.m_Items.Add(ip.GetChild() as ChartItem);
}
}
}