Fixes code according to modern code style. Fixes a few expression bugs.

This commit is contained in:
Kamron Batman 2018-09-15 09:58:51 -07:00
parent 89eea25e5f
commit 970fd563b2
3324 changed files with 441118 additions and 433755 deletions

View file

@ -1,43 +1,45 @@
namespace Server.Engines.Reports
{
public class PieChart : Chart
{
#region Type Identification
public static readonly PersistableType ThisTypeID = new PersistableType( "pc", Construct );
public class PieChart : Chart
{
public PieChart(string name, string fileName, bool showPercents)
{
m_Name = name;
m_FileName = fileName;
ShowPercents = showPercents;
}
private static PersistableObject Construct()
{
return new PieChart();
}
private PieChart()
{
}
public override PersistableType TypeID => ThisTypeID;
#endregion
public bool ShowPercents{ get; set; }
public bool ShowPercents { get; set; }
public override void SerializeAttributes(PersistanceWriter op)
{
base.SerializeAttributes(op);
public PieChart( string name, string fileName, bool showPercents )
{
m_Name = name;
m_FileName = fileName;
ShowPercents = showPercents;
}
op.SetBoolean("p", ShowPercents);
}
private PieChart()
{
}
public override void DeserializeAttributes(PersistanceReader ip)
{
base.DeserializeAttributes(ip);
public override void SerializeAttributes( PersistanceWriter op )
{
base.SerializeAttributes( op );
ShowPercents = ip.GetBoolean("p");
}
op.SetBoolean( "p", ShowPercents );
}
#region Type Identification
public override void DeserializeAttributes( PersistanceReader ip )
{
base.DeserializeAttributes( ip );
public static readonly PersistableType ThisTypeID = new PersistableType("pc", Construct);
ShowPercents = ip.GetBoolean( "p" );
}
}
}
private static PersistableObject Construct()
{
return new PieChart();
}
public override PersistableType TypeID => ThisTypeID;
#endregion
}
}