blob: e7af998d793bdb6e4c1e663443fcf47e7d6b1c43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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_cell(int tile);
int2 world_find(int tile);
|