diff --git a/include/cserver/engine/components.hpp b/include/cserver/engine/components.hpp index 3fda518..4be7b99 100644 --- a/include/cserver/engine/components.hpp +++ b/include/cserver/engine/components.hpp @@ -182,7 +182,7 @@ public: Current, I >{}, - utempl::TypeList>>{} + name >{} > static constexpr auto FindComponent() -> FindComponentType&; @@ -196,21 +196,21 @@ public: Current, I >{}, - utempl::TypeList{} + FindComponentName >{} > static constexpr auto FindComponent() -> T&; - template + template static consteval auto GetDependencies() requires (I == 0 || requires {Magic(loopholes::Getter{}>{});}) { if constexpr(I == 0 && !requires {Magic(loopholes::Getter{}>{});}) { - return utempl::TypeList{}; + return utempl::Tuple{}; } else { - if constexpr(requires{GetDependencies();}) { - return GetDependencies{}>{}))::Type>(); + if constexpr(requires{GetDependencies();}) { + return GetDependencies{}>{}))::Type>(); } else { - return utempl::kTypeList{}>{}))::Type>; + return utempl::Tuple{names..., Magic(loopholes::Getter{}>{})}; }; }; }; @@ -223,7 +223,7 @@ public: } // namespace impl -template +template struct DependencyGraphElement {};