Making bomb explose

This commit is contained in:
Zoe Roux
2021-06-01 15:33:32 +02:00
parent 42a45a06ff
commit 9dca04e385
7 changed files with 34 additions and 11 deletions
+2 -2
View File
@@ -13,13 +13,13 @@ namespace BBM
ringIn(delay)
{}
TimerComponent::TimerComponent(WAL::Entity &entity, std::chrono::nanoseconds delay, const WAL::Callback<WAL::Entity &> &callback)
TimerComponent::TimerComponent(WAL::Entity &entity, std::chrono::nanoseconds delay, const WAL::Callback<WAL::Entity &, const WAL::Wal &> &callback)
: WAL::Component(entity),
ringIn(delay),
callback(callback)
{}
TimerComponent::TimerComponent(WAL::Entity &entity, std::chrono::nanoseconds delay, std::function<void(WAL::Entity &)> callback)
TimerComponent::TimerComponent(WAL::Entity &entity, std::chrono::nanoseconds delay, std::function<void(WAL::Entity &, const WAL::Wal &)> callback)
: WAL::Component(entity),
ringIn(delay),
callback(std::move(callback))