Core/Application: Add updaters
This commit is contained in:
committed by
Jérôme Leclercq
parent
a71d4885f9
commit
2b7ff9274c
@@ -26,12 +26,17 @@ namespace Nz
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ApplicationBase::Update(Time elapsedTime)
|
||||
bool ApplicationBase::Update(Time elapsedTime)
|
||||
{
|
||||
for (auto& componentPtr : m_components)
|
||||
{
|
||||
if (componentPtr)
|
||||
componentPtr->Update(elapsedTime);
|
||||
}
|
||||
|
||||
for (auto& updater : m_updaters)
|
||||
updater->Update(elapsedTime);
|
||||
|
||||
return m_running;
|
||||
}
|
||||
}
|
||||
|
||||
11
src/Nazara/Core/ApplicationUpdater.cpp
Normal file
11
src/Nazara/Core/ApplicationUpdater.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
||||
// This file is part of the "Nazara Engine - Platform module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Core/ApplicationUpdater.hpp>
|
||||
#include <Nazara/Core/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
ApplicationUpdater::~ApplicationUpdater() = default;
|
||||
}
|
||||
Reference in New Issue
Block a user