mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 09:45:42 +00:00
Add Camera System
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// Created by Tom Augier on 05/06/2021
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "System/System.hpp"
|
||||
#include "Window.hpp"
|
||||
#include "Component/Renderer/CameraComponent.hpp"
|
||||
#include "Component/Position/PositionComponent.hpp"
|
||||
#include <Component/Controllable/ControllableComponent.hpp>
|
||||
#include "Wal.hpp"
|
||||
|
||||
namespace BBM
|
||||
{
|
||||
class CameraSystem : public WAL::System<CameraComponent, PositionComponent>
|
||||
{
|
||||
public:
|
||||
//! @inherit
|
||||
void onUpdate(WAL::ViewEntity<CameraComponent, PositionComponent> &entity, std::chrono::nanoseconds) override;
|
||||
|
||||
//! @brief introduciton animation when entering gameScene
|
||||
bool introAnimation(WAL::ViewEntity<CameraComponent, PositionComponent> &entity, bool restart = false);
|
||||
|
||||
//! @brief ctor
|
||||
CameraSystem(WAL::Wal &wal);
|
||||
//! @brief Default copy ctor
|
||||
CameraSystem(const CameraSystem &) = default;
|
||||
//! @brief Default dtor
|
||||
~CameraSystem() override = default;
|
||||
//! @brief A CameraManager screen system can't be assigned.
|
||||
CameraSystem &operator=(const CameraSystem &) = delete;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user