Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -65,10 +65,10 @@ namespace Server.Items
private class LogoutGump : Gump
{
private Bedroll m_Bedroll;
private Timer m_CloseTimer;
private readonly Bedroll m_Bedroll;
private readonly Timer m_CloseTimer;
private CampfireEntry m_Entry;
private readonly CampfireEntry m_Entry;
public LogoutGump(CampfireEntry entry, Bedroll bedroll) : base(100, 0)
{

View file

@ -19,9 +19,9 @@ namespace Server.Items
private static readonly Dictionary<Mobile, CampfireEntry> m_Table = new Dictionary<Mobile, CampfireEntry>();
private List<CampfireEntry> m_Entries;
private readonly List<CampfireEntry> m_Entries;
private Timer m_Timer;
private readonly Timer m_Timer;
public Campfire() : base(0xDE3)
{
@ -39,7 +39,7 @@ namespace Server.Items
}
[CommandProperty(AccessLevel.GameMaster)]
public DateTime Created{ get; }
public DateTime Created { get; }
[CommandProperty(AccessLevel.GameMaster)]
public CampfireStatus Status
@ -176,11 +176,11 @@ namespace Server.Items
m_Safe = false;
}
public PlayerMobile Player{ get; }
public PlayerMobile Player { get; }
public Campfire Fire{ get; }
public Campfire Fire { get; }
public DateTime Start{ get; }
public DateTime Start { get; }
public bool Valid => !Fire.Deleted && Fire.Status != CampfireStatus.Off && Player.Map == Fire.Map &&
Player.InRange(Fire, Campfire.SecureRange);

View file

@ -18,7 +18,6 @@ namespace Server.Items
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);