Allocate rooms in zones started

This commit is contained in:
2024-11-14 06:57:47 +03:00
parent 13fa1e6eef
commit 90bfc54952
8 changed files with 1750 additions and 819 deletions

View File

@@ -57,10 +57,17 @@ public:
void queue_grow_cell(flecs::entity seed_e, int id);
void growth_module(flecs::world &ecs,
const String &module_name);
void room_growth_module(flecs::world &ecs,
const String &module_name);
void create_floor_components(
flecs::entity floor_e, flecs::entity base_floor_e,
const WorldEditor::components::buildings_layout_grid_size
&size);
void create_region(flecs::entity floor_e, flecs::entity seed_e,
flecs::entity region_e,
const Vector2i &position, float area);
bool check_region(flecs::entity floor_e, int index,
const Rect2i &rect);
graph_module(flecs::world &ecs);
};
};