File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
rt_entt_codegen/core/system_provider/association Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 99namespace ecsact ::entt::detail {
1010
1111template <typename T>
12- requires (std::integral<T> || std::floating_point<T>)
12+ requires (std::integral<T> || std::floating_point<T> || std::is_enum_v<T> )
1313constexpr auto bytes_sizeof () -> int {
1414 using value_type = std::remove_cvref_t <T>;
1515
@@ -43,7 +43,7 @@ template<typename T>
4343using unsigned_bit_size_equivalent_t = unsigned_bit_size_equivalent<T>::type;
4444
4545template <typename T>
46- requires (std::integral<T> || std::floating_point<T>)
46+ requires (std::integral<T> || std::floating_point<T> || std::is_enum_v<T> )
4747auto bytes_copy_into ( //
4848 T v,
4949 auto & out_bytes,
Original file line number Diff line number Diff line change @@ -95,7 +95,10 @@ auto provider::association::entity_iteration(
9595 auto assoc_comp_cpp_ident = cpp_identifier (decl_full_name (assoc_comp_id));
9696
9797 ctx.write (std::format (
98- " {0}.storage<{1}>(::ecsact::entt::detail::hash_vals({1}::id, {2});\n " ,
98+ " {0}.storage({3}.storage<{1}>(static_cast<::entt::id_type>(::ecsact::"
99+ " entt::detail::"
100+ " hash_vals({1}::"
101+ " id, {2}))));\n " ,
99102 assoc_view_names.at (assoc_id),
100103 assoc_comp_cpp_ident,
101104 util::comma_delim (
@@ -107,7 +110,8 @@ auto provider::association::entity_iteration(
107110 ecsact::meta::field_name (assoc_comp_id, field_id)
108111 );
109112 })
110- )
113+ ),
114+ names.registry_var_name
111115 ));
112116 }
113117
You can’t perform that action at this time.
0 commit comments