mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-10 12:39:36 +00:00
Trying to merge with develop
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user