Reworking dependencies

This commit is contained in:
Zoe Roux
2021-05-21 16:51:18 +02:00
parent dee56a52c7
commit e5d3823d0c
12 changed files with 53 additions and 35 deletions

View File

@@ -4,8 +4,13 @@
#include "System.hpp"
#include <utility>
namespace WAL
{
System::System(std::vector<std::type_index> dependencies)
: _dependencies(std::move(dependencies))
{}
void System::onUpdate(Entity &entity, std::chrono::nanoseconds dtime)
{}
@@ -15,4 +20,9 @@ namespace WAL
void System::onSelfUpdate()
{}
const std::vector<std::type_index> &System::getDependencies() const
{
return this->_dependencies;
}
}