Upgrades code style - First batch (#22)

This commit is contained in:
Kamron Batman 2018-08-14 06:16:50 +08:00 committed by GitHub
parent 8ee42c8ea2
commit 632e8b4757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1834 changed files with 10245 additions and 10437 deletions

View file

@ -36,9 +36,9 @@ namespace Server.Engines.MLQuests.Gumps
private ButtonGraphic m_Graphic;
private int m_ButtonID;
public ButtonPosition Position { get { return m_Position; } }
public ButtonGraphic Graphic { get { return m_Graphic; } }
public int ButtonID { get { return m_ButtonID; } }
public ButtonPosition Position => m_Position;
public ButtonGraphic Graphic => m_Graphic;
public int ButtonID => m_ButtonID;
public ButtonInfo( ButtonPosition position, ButtonGraphic graphic, int buttonID )
{

View file

@ -117,9 +117,7 @@ namespace Server.Engines.MLQuests.Gumps
private static void CloseCurrent( NetState ns )
{
RaceChangeState state;
if ( m_Pending.TryGetValue( ns, out state ) )
if (m_Pending.TryGetValue( ns, out RaceChangeState state ))
{
state.m_Timeout.Stop();
m_Pending.Remove( ns );
@ -190,9 +188,7 @@ namespace Server.Engines.MLQuests.Gumps
private static void RaceChangeReply( NetState state, PacketReader pvSrc )
{
RaceChangeState raceChangeState;
if ( !m_Pending.TryGetValue( state, out raceChangeState ) )
if (!m_Pending.TryGetValue( state, out RaceChangeState raceChangeState ))
return;
CloseCurrent( state );
@ -289,7 +285,7 @@ namespace Server.Engines.MLQuests.Gumps
public class RaceChangeDeed : Item, IRaceChanger
{
public override string DefaultName { get { return "a race change deed"; } }
public override string DefaultName => "a race change deed";
[Constructible]
public RaceChangeDeed()