Move the BSP implementation to BSPRectMethod

This commit is contained in:
Eryn Wells 2023-03-06 19:33:34 -08:00
parent 040803fe61
commit fd068268f5
4 changed files with 118 additions and 95 deletions

View file

@ -115,3 +115,6 @@ class FreeformRoom(Room):
for y, x in np.ndindex(self.tiles.shape):
if self.tiles[y, x]['walkable']:
yield Point(x, y) + room_origin_vector
def __str__(self):
return '\n'.join(''.join(chr(i['light']['ch']) for i in row) for row in self.tiles)