]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_map.h
cleaned up 16_map.h
[16.git] / src / lib / 16_map.h
index 4a9ce9bbc903ae95bb26a1c4db8798a0f5ec5c92..b2e5dd5283abc45370b9ea7824482b11329ff87c 100755 (executable)
@@ -1,5 +1,5 @@
 /* Project 16 Source Code~\r
- * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ * Copyright (C) 2012-2019 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
  *\r
  * This file is part of Project 16.\r
  *\r
  *\r
  */\r
 \r
-#ifndef _LIBMAPREAD_H_\r
-#define _LIBMAPREAD_H_\r
+#ifndef _16_MAP__H_\r
+#define _16_MAP__H_\r
 \r
-#include "jsmn/jsmn.h"\r
-#include "stdio.h"\r
-#include "stdlib.h"\r
-#include "src/lib/modex16.h"\r
 #include "src/lib/16_head.h"\r
+#include "src/lib/16_tdef.h"\r
+//#include "stdio.h" included in 16_head.h\r
+//#include "stdlib.h" included in 16_head.h\r
+#include "src/lib/16_vl.h"\r
+#include "src/lib/16_ca.h"\r
+#include "src/lib/16_mm.h"\r
+#include "src/lib/16_pm.h"\r
 \r
-typedef struct {\r
-       bitmap_t huge *btdata;\r
-       planar_buf_t huge *data;\r
-       word tileHeight;\r
-       word tileWidth;\r
-       unsigned int rows;\r
-       unsigned int cols;\r
-       boolean debug_text;     //show the value of the tile! wwww\r
-       byte *debug_data;\r
-} tiles_t;\r
 \r
-typedef struct {\r
-       byte    * huge *data;\r
-       tiles_t **tiles;\r
-       int width;      //this has to be signed!\r
-       int height;     //this has to be signed!\r
-} map_t;\r
+//#define DEBUG_MAPDATA\r
+//#define DEBUG_MAPVARS\r
+//0000++#define DEBUG_OBVARS\r
+//#define DEBUG_JS\r
 \r
-int loadmap(char *mn, map_t *map);\r
-#endif/*_LIBMAPREAD_H_*/\r
+//typedefs moved to 16_tdef.h\r
+\r
+//word dump(const char *js, jsmntok_t *t, size_t count, word indent, char *js_sv, map_t *map, dword q);\r
+//int loadmap(char *mn, map_t *map, global_game_variables_t *gvar);\r
+int newloadmap(char *mn, map_t *map);\r
+int CA_loadmap(char *mn, map_t *map, global_game_variables_t *gvar);\r
+\r
+#endif/*_16_LIB__H_*/\r