Rename ecs::behavior::{components -> component_types}
This commit is contained in:
parent
640bbf47c7
commit
4d7f7fa927
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ namespace psemek::util
|
||||||
template <typename Behavior>
|
template <typename Behavior>
|
||||||
void apply(Behavior & behavior)
|
void apply(Behavior & behavior)
|
||||||
{
|
{
|
||||||
apply_impl(behavior, typename Behavior::components{});
|
apply_impl(behavior, typename Behavior::component_types{});
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~species_base() {}
|
virtual ~species_base() {}
|
||||||
|
|
@ -216,7 +216,7 @@ namespace psemek::util
|
||||||
template <typename ... Components>
|
template <typename ... Components>
|
||||||
struct behavior
|
struct behavior
|
||||||
{
|
{
|
||||||
using components = std::tuple<Components...>;
|
using component_types = std::tuple<Components...>;
|
||||||
using component_ptrs = std::tuple<Components *...>;
|
using component_ptrs = std::tuple<Components *...>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue