Implementing ECS SystemBase and updating slang

This commit is contained in:
Dynamitos committed 2022-11-15 12:19:11 +01:00
1 parent 05bc31a2b4
commit f635ee2100
106 files changed
+1083 -1675

No files matched your search

+4 -8
View File
@@ -1,21 +1,17 @@
#pragma once
#include "Actor.h"
#include "Scene/Component/Camera.h"
namespace Seele
{
DECLARE_REF(CameraComponent)
class CameraActor : public Actor
{
public:
CameraActor();
CameraActor(PScene scene);
virtual ~CameraActor();
PCameraComponent getCameraComponent() const
{
return cameraComponent;
}
Component::Camera& getCameraComponent();
const Component::Camera& getCameraComponent() const;
private:
PCameraComponent cameraComponent;
PComponent sceneComponent; // This will be the root, camera will be the child
};
DEFINE_REF(CameraActor)
} // namespace Seele