mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-06 19:22:20 +00:00
Trying to merge with develop
This commit is contained in:
@@ -19,12 +19,6 @@ namespace BBM
|
||||
callback(callback)
|
||||
{}
|
||||
|
||||
TimerComponent::TimerComponent(WAL::Entity &entity, std::chrono::nanoseconds delay, std::function<void(WAL::Entity &, WAL::Wal &)> callback)
|
||||
: WAL::Component(entity),
|
||||
ringIn(delay),
|
||||
callback(std::move(callback))
|
||||
{}
|
||||
|
||||
WAL::Component *TimerComponent::clone(WAL::Entity &entity) const
|
||||
{
|
||||
return new TimerComponent(entity, this->ringIn, this->callback);
|
||||
|
||||
@@ -26,8 +26,6 @@ namespace BBM
|
||||
TimerComponent(WAL::Entity &entity, std::chrono::nanoseconds delay);
|
||||
//! @brief Create a timer with a callback.
|
||||
TimerComponent(WAL::Entity &entity, std::chrono::nanoseconds delay, const WAL::Callback<WAL::Entity &, WAL::Wal &> &callback);
|
||||
//! @brief Create a timer with a function to call on ring.
|
||||
TimerComponent(WAL::Entity &entity, std::chrono::nanoseconds delay, std::function<void (WAL::Entity &, WAL::Wal &)> callback);
|
||||
//! @brief A timer component is copy constructable
|
||||
TimerComponent(const TimerComponent &) = default;
|
||||
//! @brief A default destructor
|
||||
|
||||
Reference in New Issue
Block a user