Add attempt for Entity::GetComponent

This commit is contained in:
Maple Redleaf
2025-11-10 12:14:13 -06:00
parent 45c7b2412c
commit 4afd985a50
2 changed files with 8 additions and 4 deletions

View File

@@ -8,12 +8,9 @@ class Entity {
public:
template <typename CompT, typename... Args>
Component *AddComponent(Args &&...args);
template <typename CompT> Component *GetComponent();
void Init();
void Draw();
void Update();
void FixedUpdate();
void Destroy();
private:
std::vector<std::unique_ptr<Component>> components;