Ejemplo n.º 1
0
        public static new bool canBeBuilt(Location loc, Distance size, ControlMode cm)
        {
            if (!Structure.canBeBuilt(loc, size, cm))
            {
                return(false);
            }

            // make sure all the voxels are on the ground.
            for (int y = 0; y < size.y; y++)
            {
                for (int x = 0; x < size.x; x++)
                {
                    if (World.world.getGroundLevel(loc.x + x, loc.y + y) != loc.z)
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }
Ejemplo n.º 2
0
 public new static bool canBeBuilt(Location loc, Distance sz, ControlMode cm)
 {
     return(Structure.canBeBuilt(loc, sz, cm) && Structure.isOnTheGround(loc, sz));
 }