mirror of
https://gitlab.com/voidframe/voidframe-cpp.git
synced 2026-11-25 02:10:23 -05:00
Begin implementation of Entities
This commit is contained in:
1 parent
63477b20f5
commit
9d9a574b87
6 files changed
+30
-3
No files matched your search
@@ -1,3 +1,4 @@
|
||||
#pragma once
|
||||
class Entity;
|
||||
|
||||
class Component {
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef VOID_ENTITY_H
|
||||
#define VOID_ENTITY_H
|
||||
#include "component.h"
|
||||
#include <vector>
|
||||
|
||||
class Entity {
|
||||
public:
|
||||
template <typename CompT, typename... Args>
|
||||
CompT *AddComponent(Args &&...args);
|
||||
|
||||
void Init();
|
||||
void Draw();
|
||||
void Update();
|
||||
void FixedUpdate();
|
||||
void Destroy();
|
||||
|
||||
private:
|
||||
std::vector<Component> components;
|
||||
};
|
||||
|
||||
#include "../src/entity_i.cpp"
|
||||
#endif // VOID_ENTITY_H
|
||||
Reference in new issue
Block a user