home *** CD-ROM | disk | FTP | other *** search
/ MegaDoom Adventures / PMWMEGADOOM.iso / doom / creators / ibsp101s / wad_dwd.h < prev    next >
C/C++ Source or Header  |  1994-07-10  |  1KB  |  43 lines

  1. /*
  2.    WAD_DWD.H
  3.  */
  4.  
  5. #ifndef __WAD_DWD__
  6. #define __WAD_DWD__
  7.  
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <stdarg.h>
  11. #include <memory.h>
  12. #include <string.h>
  13. #include "doomdata.h"
  14.  
  15. typedef struct
  16.     {
  17.     char                identification[4];    /* IWAD or PWAD */
  18.     long                numlumps;
  19.     long                infotableofs;
  20.     }
  21. wadinfo_t;
  22.  
  23.  
  24. typedef struct
  25.     {
  26.     long                filepos;
  27.     long                size;
  28.     char                name[8];
  29.     }
  30. lumpinfo_t;
  31.  
  32. void                Error(char *,...);
  33. void               *SafeCalloc(unsigned, size_t);
  34. void               *ReadWAD(FILE *, long, size_t);
  35. void               *ReadStorage(FILE *, lumpinfo_t *, long *, size_t);
  36. void                WriteHeader(FILE *);
  37. void                WriteLines(FILE *, long, maplinedef_t *, mapvertex_t *, mapsidedef_t *, mapsector_t *);
  38. void                WriteThings(FILE *, long, mapthing_t *);
  39. void                WriteSideAndSector(FILE *, mapsidedef_t *, mapsector_t *);
  40. void                ExtractResource(FILE *, lumpinfo_t *);
  41.  
  42. #endif
  43.