Core/Application: Add updaters
This commit is contained in:
committed by
Jérôme Leclercq
parent
a71d4885f9
commit
2b7ff9274c
@@ -37,6 +37,12 @@ namespace Nz
|
||||
return componentRef;
|
||||
}
|
||||
|
||||
template<typename F>
|
||||
void ApplicationBase::AddUpdater(F&& functor)
|
||||
{
|
||||
m_updaters.emplace_back(std::make_unique<ApplicationUpdaterFunctor<std::decay_t<F>>>(std::forward<F>(functor)));
|
||||
}
|
||||
|
||||
inline void ApplicationBase::ClearComponents()
|
||||
{
|
||||
m_components.clear();
|
||||
|
||||
Reference in New Issue
Block a user