timer system for ui

This commit is contained in:
arthur.jamet
2021-06-16 13:26:48 +02:00
parent c1551f20de
commit a477ef1252
6 changed files with 66 additions and 12 deletions
+29
View File
@@ -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;
};
}