]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/typdefst.h
wwww format of showmem edited
[16.git] / src / lib / typdefst.h
index 8373f8ee5cc5351b6f8e7f4000d45b68278a2aed..fdf96a278d241d0c9228e3aad7e1a489f4e2e993 100755 (executable)
@@ -183,16 +183,32 @@ typedef struct
 //from 16_ca\r
 //==========================================================================\r
 \r
+#define NUMMAPS                4//39\r
+#define MAPPLANES              3\r
+\r
+typedef struct\r
+{\r
+  word bit0,bit1;      // 0-255 is a character, > is a pointer to a node\r
+} huffnode;\r
+\r
+typedef struct\r
+{\r
+       int             mapon, mapnum;\r
+       __SEGA  *mapsegs[4];\r
+       __SEGA  *mapheaderseg[NUMMAPS];\r
+       __SEGA  *tinf;\r
+} ca_mapinfo_t;\r
+\r
 typedef struct\r
 {\r
        int                     maphandle[4];           // handle to MAPTEMP / GAMEMAPS\r
-} handle_t;\r
+} ca_handle_t;\r
 \r
 typedef struct\r
 {\r
        byte            ca_levelbit,ca_levelnum;\r
-       int             mapon;\r
-       handle_t        file;           //files to open\r
+       ca_handle_t     file;           //files to open\r
+       ca_mapinfo_t    camap;\r
        //_seg  *grsegs[NUMCHUNKS];\r
        //byte          far     grneeded[NUMCHUNKS];\r
        //huffnode huffnode;\r