Clarifications in ecs

This commit is contained in:
Carlos Sanchez 2024-08-22 02:14:27 -04:00
parent 30e4507317
commit 2a68ada51e

4
ecs2.h
View File

@ -5,6 +5,8 @@
#ifndef __HALOO3D_ECS2_H
#define __HALOO3D_ECS2_H
// Note: you can get rid of string.h as a requirement if you
// redo that memset to be a loop (up to you)
#include <string.h>
#ifndef ECS_MAXENTITIES
@ -15,7 +17,7 @@
// This is the unusable 64th ID = 63 (your ids should start from 0)
#define ECS_MAXCTYPES 63
// The self flag is an ID that will get you back a component that is
// the ecs system itself. It is ALSO used to identify is an entity is
// the ecs system itself. It is ALSO used to identify if an entity is
// valid, as ALL entities will implicitly have the ECS component
#define ECS_SELFFLAG (1ULL << ECS_MAXCTYPES)