#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.

This commit is contained in:
WarrentyExpired 2026-08-06 11:06:05 -04:00
parent b51c58f514
commit 3045c83799
3512 changed files with 627673 additions and 0 deletions

View file

@ -0,0 +1,46 @@
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 m_Name; } set{ m_Name = value; } }
public int Value{ get{ return m_Value; } set{ m_Value = value; } }
private ChartItem()
{
}
public ChartItem( string name, int value )
{
m_Name = name;
m_Value = value;
}
public override void SerializeAttributes( PersistanceWriter op )
{
op.SetString( "n", m_Name );
op.SetInt32( "v", m_Value );
}
public override void DeserializeAttributes( PersistanceReader ip )
{
m_Name = Utility.Intern( ip.GetString( "n" ) );
m_Value = ip.GetInt32( "v" );
}
}
}