mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-29 17:02:11 +00:00
add abs to vector
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#include "Component/Renderer/CameraComponent.hpp"
|
||||
#include "Component/Position/PositionComponent.hpp"
|
||||
#include "Component/Movable/MovableComponent.hpp"
|
||||
#include "Component/Renderer/Drawable3DComponent.hpp"
|
||||
#include "System/System.hpp"
|
||||
#include "Camera/Camera2D.hpp"
|
||||
@@ -14,7 +15,7 @@
|
||||
|
||||
namespace BBM
|
||||
{
|
||||
class RenderSystem : public WAL::System<CameraComponent, PositionComponent>
|
||||
class RenderSystem : public WAL::System<CameraComponent, MovableComponent, PositionComponent>
|
||||
{
|
||||
|
||||
//! @brief The window to render on
|
||||
@@ -35,7 +36,7 @@ namespace BBM
|
||||
void onSelfUpdate() override;
|
||||
|
||||
//! @inherit
|
||||
void onUpdate(WAL::ViewEntity<CameraComponent, PositionComponent> &entity, std::chrono::nanoseconds dtime) override;
|
||||
void onUpdate(WAL::ViewEntity<CameraComponent, MovableComponent, PositionComponent> &entity, std::chrono::nanoseconds dtime) override;
|
||||
|
||||
//! @param debug true if debug mode should be enabled
|
||||
void setDebug(bool debug);
|
||||
|
||||
Reference in New Issue
Block a user