Trying to merge with develop

This commit is contained in:
Zoe Roux
2021-06-07 14:40:24 +02:00
112 changed files with 2955 additions and 1081 deletions
+3 -3
View File
@@ -6,8 +6,8 @@
namespace BBM
{
EventSystem::EventSystem()
: WAL::System({})
EventSystem::EventSystem(WAL::Wal &wal)
: System(wal)
{}
void EventSystem::dispatchEvent(const std::function<void(WAL::Entity &)> &event)
@@ -15,7 +15,7 @@ namespace BBM
this->_events.emplace_back(event);
}
void EventSystem::onUpdate(WAL::Entity &entity, std::chrono::nanoseconds)
void EventSystem::onUpdate(WAL::ViewEntity<> &entity, std::chrono::nanoseconds)
{
for (auto &event : this->_events)
event(entity);