aboutsummaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'world.h')
-rw-r--r--world.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/world.h b/world.h
index 7f19520..7dbcb4d 100644
--- a/world.h
+++ b/world.h
@@ -2,19 +2,24 @@
#define world_h
#include "components.h"
+#include "player.h"
#define max_entities 256
typedef int Entity;
-typedef struct {
+typedef struct World World;
+
+struct World {
int entity_count;
unsigned char bitmask[max_entities];
CSprite sprites[max_entities];
CPosition positions[max_entities];
-} World;
+
+ Player player;
+};
void init_world(World* world);
Entity new_entity(World* world);