ThingSort.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. ** Command & Conquer Generals(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. ////////////////////////////////////////////////////////////////////////////////
  19. // //
  20. // (c) 2001-2003 Electronic Arts Inc. //
  21. // //
  22. ////////////////////////////////////////////////////////////////////////////////
  23. // FILE: ThingSort.h //////////////////////////////////////////////////////////////////////////////
  24. // Author: Colin Day, December 2001
  25. // Desc: A couple of "buckets" so that we can have things sort easily in the editor
  26. ///////////////////////////////////////////////////////////////////////////////////////////////////
  27. #pragma once
  28. #ifndef __THINGSORT_H_
  29. #define __THINGSORT_H_
  30. //-------------------------------------------------------------------------------------------------
  31. enum EditorSortingType
  32. {
  33. ES_FIRST = 0,
  34. ES_NONE = ES_FIRST,
  35. ES_STRUCTURE,
  36. ES_INFANTRY,
  37. ES_VEHICLE,
  38. ES_SHRUBBERY,
  39. ES_MISC_MAN_MADE,
  40. ES_MISC_NATURAL,
  41. ES_DEBRIS,
  42. ES_SYSTEM, // game "system" stuff (programmer objects, not objects to put on a map)
  43. ES_AUDIO,
  44. ES_TEST, // for test stuff loaded for the world builder
  45. ES_FOR_REVIEW, // awaiting review from the divine messenger
  46. ES_ROAD, // road objects...should never actually be in the object panel.
  47. ES_WAYPOINT, // waypoint objects...should never actually be in the object panel.
  48. ES_NUM_SORTING_TYPES // keep this last
  49. };
  50. #ifdef DEFINE_EDITOR_SORTING_NAMES
  51. static char *EditorSortingNames[] =
  52. {
  53. "NONE",
  54. "STRUCTURE",
  55. "INFANTRY",
  56. "VEHICLE",
  57. "SHRUBBERY",
  58. "MISC_MAN_MADE",
  59. "MISC_NATURAL",
  60. "DEBRIS",
  61. "SYSTEM",
  62. "AUDIO",
  63. "TEST",
  64. "FOR_REVIEW",
  65. "ROAD",
  66. "WAYPOINT",
  67. NULL
  68. };
  69. #endif
  70. #endif // __THINGSORT_H_