Upgrades code style - First batch (#22)
This commit is contained in:
parent
8ee42c8ea2
commit
632e8b4757
1834 changed files with 10245 additions and 10437 deletions
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue