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/Staffing/QueueStatus.cs
Normal file
72
Scripts/Services/Reports/Objects/Staffing/QueueStatus.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
|
||||
namespace Server.Engines.Reports
|
||||
{
|
||||
public class QueueStatus : PersistableObject
|
||||
{
|
||||
#region Type Identification
|
||||
public static readonly PersistableType ThisTypeID = new PersistableType("qs", new ConstructCallback(Construct));
|
||||
|
||||
private static PersistableObject Construct()
|
||||
{
|
||||
return new QueueStatus();
|
||||
}
|
||||
|
||||
public override PersistableType TypeID
|
||||
{
|
||||
get
|
||||
{
|
||||
return ThisTypeID;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
private DateTime m_TimeStamp;
|
||||
private int m_Count;
|
||||
|
||||
public DateTime TimeStamp
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_TimeStamp;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_TimeStamp = value;
|
||||
}
|
||||
}
|
||||
public int Count
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Count;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_Count = value;
|
||||
}
|
||||
}
|
||||
|
||||
public QueueStatus()
|
||||
{
|
||||
}
|
||||
|
||||
public QueueStatus(int count)
|
||||
{
|
||||
this.m_TimeStamp = DateTime.UtcNow;
|
||||
this.m_Count = count;
|
||||
}
|
||||
|
||||
public override void SerializeAttributes(PersistenceWriter op)
|
||||
{
|
||||
op.SetDateTime("t", this.m_TimeStamp);
|
||||
op.SetInt32("c", this.m_Count);
|
||||
}
|
||||
|
||||
public override void DeserializeAttributes(PersistenceReader ip)
|
||||
{
|
||||
this.m_TimeStamp = ip.GetDateTime("t");
|
||||
this.m_Count = ip.GetInt32("c");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user