mirror of
https://gitlab.com/voidframe/voidframe-cpp.git
synced 2026-11-25 02:10:23 -05:00
Add attempt for Entity::GetComponent
This commit is contained in:
1 parent
45c7b2412c
commit
4afd985a50
2 files changed
+8
-4
No files matched your search
+1
-4
@@ -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