#ifndef world_h #define world_h #include "components.h" #include "player.h" #define max_entities 256 typedef int Entity; typedef struct World World; struct World { int entity_count; unsigned char bitmask[max_entities]; CSprite sprites[max_entities]; CPosition positions[max_entities]; Player player; }; void init_world(World* world); Entity new_entity(World* world); void add_components(World* world, Entity e, CType bits); void remove_components(World* world, Entity e, CType bits); #endif