Unstable v0.15.17.0 (Hex is out of town edition)
This commit is contained in:
@@ -137,6 +137,9 @@ namespace Barotrauma
|
||||
get { return subBody?.Body; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Extents of the solid items/structures (ones with a physics body) and hulls
|
||||
/// </summary>
|
||||
public Rectangle Borders
|
||||
{
|
||||
get
|
||||
@@ -145,6 +148,17 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Extents of all the visible items/structures/hulls (including ones without a physics body)
|
||||
/// </summary>
|
||||
public Rectangle VisibleBorders
|
||||
{
|
||||
get
|
||||
{
|
||||
return subBody == null ? Rectangle.Empty : subBody.VisibleBorders;
|
||||
}
|
||||
}
|
||||
|
||||
public override Vector2 Position
|
||||
{
|
||||
get { return subBody == null ? Vector2.Zero : subBody.Position - HiddenSubPosition; }
|
||||
|
||||
Reference in New Issue
Block a user