Beispiel #1
0
            public bool IsWater(int x, int y, float height)
            {
                if (Heights == null || Mask == null)
                {
                    return(false);
                }
                if (!Mask.ShouldRender(x, y))
                {
                    return(false);
                }
                var diff = Heights[x, y] - height;

                if (diff > MaxStandableHeight)
                {
                    return(true);
                }
                return(false);
            }