Changes properties to use automatic property initializers

This commit is contained in:
Kamron Batman 2018-09-14 15:23:29 -07:00
parent f0a48ad431
commit 06fa31a7bf
623 changed files with 13072 additions and 19304 deletions

View file

@ -7,13 +7,7 @@ namespace Server.Engines.Chat
{
public class ChatSystem
{
private static bool m_Enabled = true;
public static bool Enabled
{
get => m_Enabled;
set => m_Enabled = value;
}
public static bool Enabled { get; set; } = true;
public static void Initialize()
{
@ -40,7 +34,7 @@ namespace Server.Engines.Chat
{
Mobile from = state.Mobile;
if ( !m_Enabled )
if ( !Enabled )
{
from.SendMessage( "The chat system has been disabled." );
return;
@ -120,7 +114,7 @@ namespace Server.Engines.Chat
public static void ChatAction( NetState state, PacketReader pvSrc )
{
if ( !m_Enabled )
if ( !Enabled )
return;
try