Skip to content

Commit

Permalink
Let auto do its thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelwan committed May 16, 2024
1 parent b11d588 commit 87cb31c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rt_entt_codegen/shared/system_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
std::format("ecsact::entt::detail::run_system<{}>", system_name);

if(notify_setting == ECSACT_SYS_NOTIFY_ONINIT) {
std::string pending_add_str =
auto pending_add_str =
std::format("ecsact::entt::component_added<{}>", cpp_comp_name);

auto view_name = std::format("{}_init_view", comp_name);
Expand All @@ -64,8 +64,8 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
view_name,
registry_name,
details,
std::vector<std::string>{pending_add_str},
std::vector<std::string>{run_system_comp}
std::vector{pending_add_str},
std::vector{run_system_comp}
);

block(ctx, std::format("for(auto entity: {})", view_name), [&]() {
Expand All @@ -76,7 +76,7 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
}

if(notify_setting == ECSACT_SYS_NOTIFY_ONREMOVE) {
std::string pending_remove_str =
auto pending_remove_str =
std::format("ecsact::entt::component_removed<{}>", cpp_comp_name);

auto view_name = std::format("{}_remove_view", comp_name);
Expand All @@ -87,7 +87,7 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
registry_name,
details,
std::vector{pending_remove_str},
std::vector<std::string>{run_system_comp}
std::vector{run_system_comp}
);

block(ctx, std::format("for(auto entity: {})", view_name), [&]() {
Expand All @@ -98,7 +98,7 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
}

if(notify_setting == ECSACT_SYS_NOTIFY_ONUPDATE) {
std::string component_updated_str =
auto component_updated_str =
std::format("ecsact::entt::component_updated<{}>", cpp_comp_name);

auto view_name = std::format("{}_update_view", comp_name);
Expand All @@ -108,8 +108,8 @@ auto ecsact::rt_entt_codegen::system_util::detail::print_system_notify_views(
view_name,
registry_name,
details,
std::vector<std::string>{component_updated_str},
std::vector<std::string>{run_system_comp}
std::vector{component_updated_str},
std::vector{run_system_comp}
);

block(ctx, std::format("for(auto entity: {})", view_name), [&]() {
Expand Down

0 comments on commit 87cb31c

Please # to comment.