mirror of
https://gitlab.com/voidframe/voidframe-cpp.git
synced 2026-07-01 18:55:12 -04:00
Add attempt for Entity::GetComponent
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user