Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.4 KiB

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef DMXHEADER_H
  7. #define DMXHEADER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //-----------------------------------------------------------------------------
  12. // data file format info
  13. //-----------------------------------------------------------------------------
  14. #define DMX_LEGACY_VERSION_STARTING_TOKEN "<!-- DMXVersion"
  15. #define DMX_LEGACY_VERSION_ENDING_TOKEN "-->"
  16. #define DMX_VERSION_STARTING_TOKEN "<!-- dmx"
  17. #define DMX_VERSION_ENDING_TOKEN "-->"
  18. #define GENERIC_DMX_FORMAT "dmx"
  19. enum
  20. {
  21. DMX_MAX_FORMAT_NAME_MAX_LENGTH = 64,
  22. DMX_MAX_HEADER_LENGTH = 40 + 2 * DMX_MAX_FORMAT_NAME_MAX_LENGTH,
  23. };
  24. struct DmxHeader_t
  25. {
  26. char encodingName[ DMX_MAX_FORMAT_NAME_MAX_LENGTH ];
  27. int nEncodingVersion;
  28. char formatName[ DMX_MAX_FORMAT_NAME_MAX_LENGTH ];
  29. int nFormatVersion;
  30. DmxHeader_t() : nEncodingVersion( -1 ), nFormatVersion( -1 )
  31. {
  32. encodingName[ 0 ] = formatName[ 0 ] = '\0';
  33. }
  34. };
  35. //-----------------------------------------------------------------------------
  36. // file id - also used to refer to elements that don't have file associations
  37. //-----------------------------------------------------------------------------
  38. enum DmFileId_t
  39. {
  40. DMFILEID_INVALID = 0xffffffff
  41. };
  42. #endif // DMXHEADER_H