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

@ -19,24 +19,16 @@ namespace Server.Engines.Help
// What is the maximum number of entries a log can contain? (0 -> no limit)
public static readonly int MaxLength = 0;
private Queue<SpeechLogEntry> m_Queue;
private readonly Queue<SpeechLogEntry> m_Queue;
public SpeechLog() => m_Queue = new Queue<SpeechLogEntry>();
public int Count => m_Queue.Count;
#region IEnumerable<SpeechLogEntry> Members
IEnumerator<SpeechLogEntry> IEnumerable<SpeechLogEntry>.GetEnumerator() => m_Queue.GetEnumerator();
#endregion
#region IEnumerable Members
IEnumerator IEnumerable.GetEnumerator() => m_Queue.GetEnumerator();
#endregion
public static void Initialize()
{
CommandSystem.Register("SpeechLog", AccessLevel.Counselor, SpeechLog_OnCommand);
@ -127,10 +119,10 @@ namespace Server.Engines.Help
Created = DateTime.UtcNow;
}
public Mobile From{ get; }
public Mobile From { get; }
public string Speech{ get; }
public string Speech { get; }
public DateTime Created{ get; }
public DateTime Created { get; }
}
}