messages.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #ifndef MESSAGES_H__
  2. #define MESSAGES_H__
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif
  6. typedef struct
  7. {
  8. const char* title;
  9. const char* text;
  10. const char* howto;
  11. }
  12. MessageTable_t;
  13. typedef enum
  14. {
  15. assume_first = 0,
  16. // generic
  17. assume_NoMemory,
  18. assume_ValidPointer,
  19. assume_BadWorkcount,
  20. // qcsg
  21. assume_MISSING_BRACKET_IN_TEXTUREDEF,
  22. assume_PLANE_WITH_NO_NORMAL,
  23. assume_BRUSH_WITH_COPLANAR_FACES,
  24. assume_BRUSH_OUTSIDE_WORLD,
  25. assume_MIXED_FACE_CONTENTS,
  26. assume_BRUSH_NOT_ALLOWED_IN_WORLD,
  27. assume_BRUSH_NOT_ALLOWED_IN_ENTITY,
  28. assume_NO_VISIBILE_BRUSHES,
  29. assume_ONLY_ORIGIN,
  30. assume_COULD_NOT_FIND_WAD,
  31. assume_MAX_TRIANGLES,
  32. assume_MAX_SWITCHED_LIGHTS,
  33. assume_MAX_TEXFILES,
  34. // qbsp
  35. assume_LEAK,
  36. assume_MAX_LEAF_FACES,
  37. assume_MAX_WEDGES,
  38. assume_MAX_WVERTS,
  39. assume_MAX_SUPERFACEEDGES,
  40. assume_EmptySolid,
  41. // vis
  42. assume_LEAF_PORTAL_SAW_INTO_LEAF,
  43. assume_MAX_PORTALS_ON_LEAF,
  44. assume_VALID_NETVIS_STATE,
  45. // qrad
  46. assume_MAX_TEXLIGHTS,
  47. assume_MAX_PATCHES,
  48. assume_TransferError,
  49. assume_BadSurfaceExtents,
  50. assume_MalformedTextureFace,
  51. assume_NoLights,
  52. assume_BadLightType,
  53. assume_MAX_SINGLEMAP,
  54. // common
  55. assume_THREAD_ERROR,
  56. assume_MAX_MAP_PLANES,
  57. assume_MAX_MAP_TEXTURES,
  58. assume_MAX_MAP_MIPTEX,
  59. assume_MAX_MAP_TEXINFO,
  60. assume_MAX_MAP_SIDES,
  61. assume_MAX_MAP_BRUSHES,
  62. assume_MAX_MAP_ENTITIES,
  63. assume_MAX_ENGINE_ENTITIES,
  64. assume_MAX_MAP_MODELS,
  65. assume_MAX_MAP_VERTS,
  66. assume_MAX_MAP_EDGES,
  67. assume_MAX_MAP_CLIPNODES,
  68. assume_MAX_MAP_MARKSURFACES,
  69. assume_MAX_MAP_FACES,
  70. assume_MAX_MAP_SURFEDGES,
  71. assume_MAX_MAP_NODES,
  72. assume_COMPRESSVIS_OVERFLOW,
  73. assume_DECOMPRESSVIS_OVERFLOW,
  74. // AJM: added in
  75. assume_TOOL_CANCEL,
  76. assume_GENERIC,
  77. // KGP: added
  78. assume_MAX_MAP_LIGHTING,
  79. assume_MAX_INTERNAL_MAP_PLANES,
  80. assume_last
  81. }
  82. assume_msgs;
  83. extern const MessageTable_t* GetAssume(assume_msgs id);
  84. #endif // commonc MESSAGES_H__