game/Environment/World.cs
/// <summary>
/// Check, whether given position is placed inside world (tilemap).
/// </summary>
/// <param name="x">X coordinate of position.</param>
/// <param name="y">Y coordinate of position.</param>
/// <returns>True, if given position is inside world, false otherwise.</returns>
Check, whether given position is placed inside world (tilemap).
Check whether given position is placed inside world ( tilemap ) .
public bool IsValidCoords(int x, int y)
            => 0 <= x 
                && x < Size.Width
                && 0 <= y
                && y < Size.Height;
public bool IsValidCoords ( int x , int y ) => 0 <= x && x < Size . Width && 0 <= y && y < Size . Height ;
Check, whether given position is placed inside world (tilemap).
Check whether given position is placed inside world ( tilemap ) .
True, if given position is inside world, false otherwise.
True if given position is inside world false otherwise .
x
int
X coordinate of position.
X coordinate of position .
y
int
Y coordinate of position.
Y coordinate of position .