Release 1.9.7.0 - Summer Update 2025

This commit is contained in:
Regalis11
2025-06-17 16:38:11 +03:00
parent 22227f13e5
commit ea5a2bc693
297 changed files with 7344 additions and 2421 deletions
@@ -66,6 +66,15 @@ namespace Barotrauma.Extensions
value.Top > bottom && rect.Top > otherBottom;
}
/// <summary>
/// Converts the y-coordinate of the rectangle so that up is greater and down is lower
/// (i.e. so the Location of the rectangle is at the top-left corner in world coordinates).
/// </summary>
public static Rectangle ToWorldRect(this Rectangle rect)
{
return new Rectangle(rect.X, rect.Y - rect.Height, rect.Size.X, rect.Size.Y);
}
/// <summary>
/// Like the XNA method, but treats the y-coordinate so that up is greater and down is lower.
/// </summary>