home *** CD-ROM | disk | FTP | other *** search
/ 1,001 Nights of Doom / 1001NightsOfDoom1995wickedSensations.iso / nodebild / idbsp10.zip / WAD_DWD.H < prev    next >
Text File  |  1994-06-03  |  940b  |  40 lines

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