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

@ -90,11 +90,11 @@ namespace Server.Engines.Quests.Collector
private int m_X;
private int m_Y;
public int Figurine { get { return m_Figurine; } }
public Type Type { get { return m_Type; } }
public int Figurine => m_Figurine;
public Type Type => m_Type;
public int Name { get { return m_Figurine < 0x4000 ? 1020000 + m_Figurine : 1078872 + m_Figurine; } }
public int X { get { return m_X; } }
public int Y { get { return m_Y; } }
public int X => m_X;
public int Y => m_Y;
public ImageTypeInfo( int figurine, Type type, int x, int y )
{
@ -104,4 +104,4 @@ namespace Server.Engines.Quests.Collector
m_Y = y;
}
}
}
}

View file

@ -120,7 +120,7 @@ namespace Server.Engines.Quests.Collector
set { m_StatueName = value; InvalidateProperties(); }
}
public override bool ForceShowProperties { get { return ObjectPropertyList.Enabled; } }
public override bool ForceShowProperties => ObjectPropertyList.Enabled;
[Constructible]
public Obsidian() : base( 0x1EA7 )
@ -261,4 +261,4 @@ namespace Server.Engines.Quests.Collector
m_StatueName = Utility.Intern( reader.ReadString() );
}
}
}
}