Rename ecs::behavior::{components -> component_types}

This commit is contained in:
Nikita Lisitsa 2021-07-21 22:47:32 +03:00
parent 640bbf47c7
commit 4d7f7fa927

View file

@ -47,7 +47,7 @@ namespace psemek::util
template <typename Behavior>
void apply(Behavior & behavior)
{
apply_impl(behavior, typename Behavior::components{});
apply_impl(behavior, typename Behavior::component_types{});
}
virtual ~species_base() {}
@ -216,7 +216,7 @@ namespace psemek::util
template <typename ... Components>
struct behavior
{
using components = std::tuple<Components...>;
using component_types = std::tuple<Components...>;
using component_ptrs = std::tuple<Components *...>;
};