public bool HasDoorAtCardinalDirection(Vec pos) { var x = Direction.cardinal.Select(i => i + pos).Where(i => (tiles[i.x, i.y].Type).ToString().Contains("Door")).ToList(); return(x.Any()); }
public bool IsOpenSpace(Vec pos) { return(IsOpenSpace(pos.x, pos.y)); }