Guest User

blurredd

a guest
Jan 31st, 2010
192
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifdef TSF_RELEASE
  2. #define MAX_TILES 4096
  3. #else
  4. #define MAX_TILES 1024
  5. #endif
  6.  
  7. #ifdef TSF_RELEASE
  8. #define MAX_ANIMATING_TILES 256
  9. #else
  10. #define MAX_ANIMATING_TILES 128
  11. #endif
  12.  
  13. #pragma pack(1)
  14.  
  15. struct TanimatingTile {
  16.     unsigned short framesBetweenCycles;
  17.     unsigned short randomAdder;
  18.     unsigned short pingPongWait;
  19.     unsigned char isPingPong;
  20.     unsigned char fps;
  21.     unsigned char frames;
  22.     unsigned short tiles[64];
  23. };
  24.  
  25. struct TlevelHeader {
  26.     char unknown;
  27.     unsigned short jcsHorizontal;
  28.     unsigned short securityEnvelope1;
  29.     unsigned short jcsVertical;
  30.     unsigned char securityEnvelope2;
  31.     unsigned char secEnvAndLayer;
  32.  
  33.     unsigned char minimumAmbient;
  34.     unsigned char startingAmbient;
  35.     unsigned short numAnimatingTiles;
  36.     unsigned char splitScreenDivider;
  37.     unsigned char isMultiplayer;
  38.     unsigned long streamSize;
  39.     char levelName[32];
  40.     char tileset[32];
  41.     char bonusLevel[32];
  42.     char nextLevel[32];
  43.     char secretLevel[32];
  44.     char musicFile[32];
  45.     char helpStrings[16][512];
  46.  
  47.     unsigned long layerProperties[8];
  48.     char layerUnknown1[8];
  49.     char isLayerUsed[8];
  50.     unsigned long jcsLayerWidths[8];
  51.     unsigned long layerWidths[8];
  52.     unsigned long layerHeights[8];
  53.     char layerUnknown2[16];
  54.     char layerUnknown3[32];
  55.     char layerUnknown4[32];
  56.     char layerUnknown5[24];
  57.     long layerXSpeeds[8];
  58.     long layerYSpeeds[8];
  59.     long layerAutoXSpeeds[8];
  60.     long layerAutoYSpeeds[8];
  61.     char layerUnknown6[8];
  62.     struct TlayerFade {
  63.         unsigned char red;
  64.         unsigned char green;
  65.         unsigned char blue;
  66.     } layerFades[8];
  67.  
  68.     unsigned short numStaticTiles;
  69.     unsigned long tileEvents[MAX_TILES];
  70.     unsigned char tileUnknown1[MAX_TILES];
  71.     unsigned char tileTypes[MAX_TILES];
  72.     unsigned char tileUnknown2[MAX_TILES];
  73.  
  74.     TanimatingTile animatingTiles[MAX_ANIMATING_TILES];
  75.  
  76.     unsigned char wasteOfSpace[512];
  77. };
  78.  
  79. #pragma pack()
RAW Paste Data