mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-06 03:12:01 +00:00
timer system for ui
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// Created by Zoe Roux on 5/31/21.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <System/System.hpp>
|
||||
#include <Wal.hpp>
|
||||
#include <Component/Timer/TimerComponent.hpp>
|
||||
#include "Component/Renderer/Drawable2DComponent.hpp"
|
||||
|
||||
namespace BBM
|
||||
{
|
||||
class TimerUISystem : public WAL::System<TimerComponent, Drawable2DComponent>
|
||||
{
|
||||
public:
|
||||
//! @inherit
|
||||
void onUpdate(WAL::ViewEntity<TimerComponent, Drawable2DComponent> &entity, std::chrono::nanoseconds dtime) override;
|
||||
|
||||
//! @brief A default constructor
|
||||
TimerUISystem(WAL::Wal &);
|
||||
//! @brief A timer system is copy constructable.
|
||||
TimerUISystem(const TimerUISystem &) = default;
|
||||
//! @brief A default destructor
|
||||
~TimerUISystem() override = default;
|
||||
//! @breief A timer system is assignable.
|
||||
TimerUISystem &operator=(const TimerUISystem &) = default;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user