]> 4ch.mooo.com Git - 16.git/blob - src/lib/fmapread.h
refresh wwww
[16.git] / src / lib / fmapread.h
1 #ifndef _LIBFMAPREAD_H_
2 #define _LIBFMAPREAD_H_
3 #include <stdlib.h>     //huge wwww
4 #include <stdio.h>              //huge wwww
5 #include <string.h>
6 #include <errno.h>
7 #include <malloc.h>
8
9 #include "src/lib/jsmn/farjsmn.h"
10 //++++#include "src/lib/modex16.h"
11 //++++#include "src/lib/lib_head.h"
12 #include "src/lib/types.h"
13
14 //#define DEBUG_MAPDATA
15 //#define DEBUG_MAPVAR
16 //#define DEBUG_DUMPVARS
17 //#define DEBUG_JS
18
19 typedef struct {\r
20 //++++  bitmap_t *data;
21         word tileHeight;\r
22         word tileWidth;\r
23         unsigned int rows;\r
24         unsigned int cols;\r
25 } tiles_t;\r
26 \r
27 typedef struct {\r
28         byte huge *data;\r
29         tiles_t *tiles;\r
30         int width;      //this has to be signed!\r
31         int height;     //this has to be signed!\r
32 } map_t;
33
34 int jsoneq(const char huge *json, jsmntok_t huge *tok, const char huge *s);
35 word dump(const char huge *js, jsmntok_t huge *t, size_t count, word indent, char *js_sv, map_t *map, dword q);
36 int loadmap(char *mn, map_t *map);
37
38 #endif/*_LIBFMAPREAD_H_*/