Refactored region growth

This commit is contained in:
2024-11-16 06:24:34 +03:00
parent 0b4a942acb
commit abd814eba2
5 changed files with 858 additions and 655 deletions

View File

@@ -59,15 +59,14 @@ public:
const String &module_name);
void room_growth_module(flecs::world &ecs,
const String &module_name);
void zones_graph_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);
const Rect2i &rect) const;
graph_module(flecs::world &ecs);
};
};