summaryrefslogtreecommitdiff
path: root/inc/world.h
blob: d4c56f017c8f2eea8d57dd6635d58d94974cd1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);