X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypdefst.h;h=fdf96a278d241d0c9228e3aad7e1a489f4e2e993;hb=fdba3fc0da3fb172176d9f74a8c4c55a23250e8a;hp=d0e4a463d08d5868bf00b10e712fe1e5e6df902f;hpb=b76c0985ea68720687947fb46a5a49cebe6cbac2;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index d0e4a463..fdf96a27 100755 --- a/src/lib/typdefst.h +++ b/src/lib/typdefst.h @@ -183,16 +183,32 @@ typedef struct //from 16_ca //========================================================================== +#define NUMMAPS 4//39 +#define MAPPLANES 3 + +typedef struct +{ + word bit0,bit1; // 0-255 is a character, > is a pointer to a node +} huffnode; + +typedef struct +{ + int mapon, mapnum; + __SEGA *mapsegs[4]; + __SEGA *mapheaderseg[NUMMAPS]; + __SEGA *tinf; +} ca_mapinfo_t; + typedef struct { - int maphandles[4]; // handle to MAPTEMP / GAMEMAPS -} handle_t; + int maphandle[4]; // handle to MAPTEMP / GAMEMAPS +} ca_handle_t; typedef struct { byte ca_levelbit,ca_levelnum; - int mapon; - handle_t file; //files to open + ca_handle_t file; //files to open + ca_mapinfo_t camap; //_seg *grsegs[NUMCHUNKS]; //byte far grneeded[NUMCHUNKS]; //huffnode huffnode;