Bricklayer.Common.World.Map.InBounds C# (CSharp) Méthode

InBounds() public méthode

Determines if a grid position is in the bounds of the map
public InBounds ( int x, int y, int z = 1 ) : bool
x int
y int
z int
Résultat bool
        public bool InBounds(int x, int y, int z = 1)
        {
            return !(y < 1 || y >= Height - 1 || x < 1 || x >= Width - 1 || z > 1 || z < 0);
        }