initial components

This commit is contained in:
Josh Lyon
2025-08-12 23:14:42 -06:00
parent 4e3e4f9aab
commit f6de0ed9f3
9 changed files with 65 additions and 5 deletions

18
include/GameObject.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
#include <memory>
#include "Graphics.h"
#include "components/GraphicsComponent.h"
class GameObject : std::enable_shared_from_this<GameObject> {
public:
GameObject(std::unique_ptr<GraphicsComponent> graphics)
: m_graphics(std::move(graphics)) {}
void update(Graphics &graphics) {
m_graphics->update(graphics);
}
private:
std::unique_ptr<GraphicsComponent> m_graphics;
};