Fixes body expression style.

This commit is contained in:
Kamron Batman 2018-09-14 08:46:14 -07:00
parent 3f0a72a62f
commit 33f5e77a24
957 changed files with 7424 additions and 15973 deletions

View file

@ -22,35 +22,32 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public bool Protected
{
get { return m_Protected; }
set { m_Protected = value; }
get => m_Protected;
set => m_Protected = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public Rectangle2D Bounds
{
get { return m_Bounds; }
set { m_Bounds = value; }
get => m_Bounds;
set => m_Bounds = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Width
{
get { return m_Width; }
set { m_Width = value; }
get => m_Width;
set => m_Width = value;
}
[CommandProperty( AccessLevel.GameMaster )]
public int Height
{
get { return m_Height; }
set { m_Height = value; }
get => m_Height;
set => m_Height = value;
}
public List<Point2D> Pins
{
get { return m_Pins; }
}
public List<Point2D> Pins => m_Pins;
[Constructible]
public MapItem() : base( 0x14EC )

View file

@ -66,10 +66,10 @@ namespace Server.Items
private int m_Width, m_Height;
private Rectangle2D m_Bounds;
public int Name{ get{ return m_Name; } }
public int Width{ get{ return m_Width; } }
public int Height{ get{ return m_Height; } }
public Rectangle2D Bounds{ get{ return m_Bounds; } }
public int Name => m_Name;
public int Width => m_Width;
public int Height => m_Height;
public Rectangle2D Bounds => m_Bounds;
public PresetMapEntry( int name, int width, int height, int xLeft, int yTop, int xRight, int yBottom )
{
@ -111,7 +111,7 @@ namespace Server.Items
new PresetMapEntry( 1041202, 200, 200, 0000, 0512, 1792, 2048 ) // map of Yew to Britain
};
public static PresetMapEntry[] Table{ get{ return m_Table; } }
public static PresetMapEntry[] Table => m_Table;
}
public enum PresetMapType

View file

@ -18,22 +18,29 @@ namespace Server.Items
private Point2D m_Location;
[CommandProperty( AccessLevel.GameMaster )]
public int Level{ get{ return m_Level; } set{ m_Level = value; InvalidateProperties(); } }
public int Level{ get => m_Level;
set{ m_Level = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
public bool Completed{ get{ return m_Completed; } set{ m_Completed = value; InvalidateProperties(); } }
public bool Completed{ get => m_Completed;
set{ m_Completed = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
public Mobile CompletedBy{ get{ return m_CompletedBy; } set{ m_CompletedBy = value; InvalidateProperties(); } }
public Mobile CompletedBy{ get => m_CompletedBy;
set{ m_CompletedBy = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
public Mobile Decoder{ get{ return m_Decoder; } set{ m_Decoder = value; InvalidateProperties(); } }
public Mobile Decoder{ get => m_Decoder;
set{ m_Decoder = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
public Map ChestMap{ get{ return m_Map; } set{ m_Map = value; InvalidateProperties(); } }
public Map ChestMap{ get => m_Map;
set{ m_Map = value; InvalidateProperties(); } }
[CommandProperty( AccessLevel.GameMaster )]
public Point2D ChestLocation{ get{ return m_Location; } set{ m_Location = value; } }
public Point2D ChestLocation{ get => m_Location;
set => m_Location = value;
}
private static Point2D[] m_Locations;
private static Point2D[] m_HavenLocations;