Clarifications in ecs
This commit is contained in:
parent
30e4507317
commit
2a68ada51e
4
ecs2.h
4
ecs2.h
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user