blob: a777a4aeead27cdb480882268fece17a47f0860d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef PKE_ECS_HPP
#define PKE_ECS_HPP
#include "dynamic-array.hpp"
#include "macros.hpp"
#include "memory.hpp"
#include "components.hpp"
#include "glm/vec3.hpp"
extern DynArray<EntityHandle> EntitiesToBeRemoved;
static struct {
uint64_t Entity = 1ULL << 0;
uint64_t GrBinds = 1ULL << 1;
} ComponentTypes;
void ECS_Init();
void ECS_Tick(double delta);
EntityHandle ECS_CreateEntity(EntityHandle parentEntityHandle = EntityHandle{EntityHandle_T{0xFFFFFFFFFFFFFFFF}});
void ECS_MarkForRemoval(EntityHandle entityHandle);
CompGrBinds &ECS_CreateGrBinds(EntityHandle entHandle);
CompGrBinds *ECS_GetGrBinds(EntityHandle entHandle);
uint64_t ECS_GetGrBinds_BucketCount();
CompGrBinds *ECS_GetGrBinds(uint64_t bucketIndex, uint64_t &itemCount);
#endif /* PKE_ECS_HPP */
|