summaryrefslogtreecommitdiff
path: root/inc/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/world.h')
-rw-r--r--inc/world.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/inc/world.h b/inc/world.h
new file mode 100644
index 0000000..d4c56f0
--- /dev/null
+++ b/inc/world.h
@@ -0,0 +1,20 @@
+#pragma once
+#include "cell.h"
+
+typedef struct World {
+ Cell *root_cell;
+ int width;
+ int height;
+ Cell **cells;
+ int x;
+ int y;
+ bool polarity;
+} World;
+
+extern World g_world;
+
+void world_init(const char *path, const char *cell_pattern);
+void world_deinit(void);
+void world_draw(void);
+int world_get(int x, int y);
+int2 world_find(int tile);