Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue