aboutsummaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'world.h')
-rw-r--r--world.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/world.h b/world.h
index 3127f37..d9995ab 100644
--- a/world.h
+++ b/world.h
@@ -11,8 +11,10 @@ typedef struct World World;
struct World {
int entity_count;
+ int recycle_bin_count;
unsigned char bitmask[max_entities];
+ Entity recycle_bin[max_entities];
CSprite sprites [max_entities];
CPosition positions [max_entities];
@@ -24,6 +26,7 @@ struct World {
void init_world(World* world);
Entity new_entity(World* world);
+void destroy_entity(World* world, Entity e);
void add_components(World* world, Entity e, CType bits);
void remove_components(World* world, Entity e, CType bits);