summaryrefslogtreecommitdiff
path: root/map.c
blob: 5dbe2369d4c41d2b1039281c8d92ef707afc4e0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "map.h"

int map_size(int w, int h) {
	return sizeof(Map) + w * h * sizeof(Map_Tile);
}

Map_Tile* map_tiles(Map* m) {
	return (Map_Tile*)&m[1];
}

const Map_Tile* map_tilesc(const Map* m) {
	return (Map_Tile*)&m[1];
}