Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ecsact/entt/wrapper/core.hh
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ inline auto prepare_component(ecsact_registry_id registry_id) -> void {
if constexpr(!std::is_empty_v<C>) {
reg.template storage<detail::exec_beforechange_storage<C>>();
reg.template storage<detail::exec_itr_beforechange_storage<C>>();
reg.template storage<detail::run_on_stream<C>>();
}
}

Expand Down
5 changes: 5 additions & 0 deletions rt_entt_codegen/core/init_registry_storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ auto ecsact::rt_entt_codegen::core::print_init_registry_storage(
.parameter("ecsact_registry_id", "registry_id")
.return_type("void");

ctx.write("auto& reg = ecsact::entt::get_registry(registry_id);\n");
ctx.write(
"reg.template storage<ecsact::entt::detail::destroyed_entity>();\n\n"
);

for(auto comp_id : details.all_components) {
auto cpp_comp_name = cpp_identifier(decl_full_name(comp_id));

Expand Down