Begin implementation of Entities

This commit is contained in:
Maple Redleaf
2025-11-10 10:31:25 -06:00
parent 63477b20f5
commit 9d9a574b87
6 changed files with 30 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
#pragma once
class Entity;
class Component {

22
include/entity.h Normal file
View File

@@ -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