Did a small refactoring

This commit is contained in:
2024-11-12 07:51:34 +03:00
parent 124a080840
commit d1bcf3af7b
5 changed files with 744 additions and 340 deletions

View File

@@ -46,7 +46,21 @@ public:
int get_layout_count() const;
int get_children_count(flecs::entity base_e) const;
struct graph_module {
flecs::entity GraphSolve;
flecs::entity get_layout_grid_base();
flecs::entity get_layout_base();
flecs::entity create_cell(flecs::entity floor_e,
flecs::entity region_e, int id);
bool have_cell(flecs::entity floor_e, int id);
void grow_cell(flecs::entity seed_e, int id);
void queue_grow_cell(flecs::entity seed_e, int id);
void 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);
graph_module(flecs::world &ecs);
};
};