Fix unused caches in ecs::dispatcher
This commit is contained in:
parent
91c2dbca67
commit
7279a5b6f5
1 changed files with 4 additions and 4 deletions
|
|
@ -52,25 +52,25 @@ namespace psemek::ecs
|
||||||
{
|
{
|
||||||
container_->apply<Components...>([&](ecs::container & container, ecs::handle handle, Components & ... components){
|
container_->apply<Components...>([&](ecs::container & container, ecs::handle handle, Components & ... components){
|
||||||
system(event, container, handle, components...);
|
system(event, container, handle, components...);
|
||||||
});
|
}, cache);
|
||||||
}
|
}
|
||||||
else if constexpr (std::invocable<System, Event const &, ecs::container &, Components & ...>)
|
else if constexpr (std::invocable<System, Event const &, ecs::container &, Components & ...>)
|
||||||
{
|
{
|
||||||
container_->apply<Components...>([&](ecs::container & container, Components & ... components){
|
container_->apply<Components...>([&](ecs::container & container, Components & ... components){
|
||||||
system(event, container, components...);
|
system(event, container, components...);
|
||||||
});
|
}, cache);
|
||||||
}
|
}
|
||||||
else if constexpr (std::invocable<System, Event const &, handle, Components & ...>)
|
else if constexpr (std::invocable<System, Event const &, handle, Components & ...>)
|
||||||
{
|
{
|
||||||
container_->apply<Components...>([&](ecs::handle handle, Components & ... components){
|
container_->apply<Components...>([&](ecs::handle handle, Components & ... components){
|
||||||
system(event, handle, components...);
|
system(event, handle, components...);
|
||||||
});
|
}, cache);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
container_->apply<Components...>([&](Components & ... components){
|
container_->apply<Components...>([&](Components & ... components){
|
||||||
system(event, components...);
|
system(event, components...);
|
||||||
});
|
}, cache);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue