mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 05:45:10 +00:00
alalalallalalllala
This commit is contained in:
28
sources/Component/Renderer/CameraComponent.hpp
Normal file
28
sources/Component/Renderer/CameraComponent.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Created by Zoe Roux on 5/27/21.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Component/Component.hpp>
|
||||
|
||||
namespace BBM
|
||||
{
|
||||
//! @brief A class allowing one to place the camera in the scene.
|
||||
//! @warning Only one CameraComponent is allowed on the scene. Using more than one result in undefined behaviors.
|
||||
class CameraComponent : public WAL::Component
|
||||
{
|
||||
public:
|
||||
//! @inherit
|
||||
Component *clone(WAL::Entity &entity) const override;
|
||||
|
||||
//! @brief Ctor
|
||||
explicit CameraComponent(WAL::Entity &);
|
||||
//! @brief A camera component is copy constructable.
|
||||
CameraComponent(const CameraComponent &) = default;
|
||||
//! @brief Default destructor.
|
||||
~CameraComponent() override = default;
|
||||
//! @brief A camera component can't be assigned.
|
||||
CameraComponent &operator=(const CameraComponent &) = delete;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user