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

@ -6,14 +6,14 @@ namespace Server.Engines.Quests
{
public abstract class QuestConversation
{
public abstract object Message{ get; }
public abstract object Message { get; }
public virtual QuestItemInfo[] Info => null;
public virtual bool Logged => true;
public QuestSystem System{ get; set; }
public QuestSystem System { get; set; }
public bool HasBeenRead{ get; set; }
public bool HasBeenRead { get; set; }
public virtual void BaseDeserialize(IGenericReader reader)
{
@ -22,11 +22,11 @@ namespace Server.Engines.Quests
switch (version)
{
case 0:
{
HasBeenRead = reader.ReadBool();
{
HasBeenRead = reader.ReadBool();
break;
}
break;
}
}
ChildDeserialize(reader);
@ -58,9 +58,9 @@ namespace Server.Engines.Quests
public class QuestConversationsGump : BaseQuestGump
{
private List<QuestConversation> m_Conversations;
private readonly List<QuestConversation> m_Conversations;
public QuestConversationsGump(QuestConversation conv) : this(new List<QuestConversation>{ conv })
public QuestConversationsGump(QuestConversation conv) : this(new List<QuestConversation> { conv })
{
}