NodeCategories.h 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. ** Command & Conquer Renegade(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. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : LevelEdit *
  23. * *
  24. * $Archive:: /Commando/Code/Tools/LevelEdit/NodeCategories.h $*
  25. * *
  26. * Author:: Patrick Smith *
  27. * *
  28. * $Modtime:: 2/23/01 1:09p $*
  29. * *
  30. * $Revision:: 13 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #if defined(_MSC_VER)
  36. #pragma once
  37. #endif
  38. #ifndef __NODE_CATEGORIES_H
  39. #define __NODE_CATEGORIES_H
  40. #include "definitionclassids.h"
  41. #include "icons.h"
  42. #include "editorchunkids.h"
  43. #include "combatchunkid.h"
  44. ////////////////////////////////////////////////////////////////////////////////////
  45. //
  46. // Structures and tables
  47. //
  48. ////////////////////////////////////////////////////////////////////////////////////
  49. typedef struct
  50. {
  51. const char *name;
  52. int clsid;
  53. int icon;
  54. } CATEGORY_INFO;
  55. const CATEGORY_INFO PRESET_CATEGORIES[] =
  56. {
  57. { "Terrain", CLASSID_TERRAIN, TERRAIN_ICON },
  58. { "Tile", CLASSID_TILE, TILE_ICON },
  59. { "Object", CLASSID_GAME_OBJECTS, OBJECT_ICON },
  60. { "Buildings", CLASSID_BUILDINGS, BUILDING_ICON },
  61. { "Munitions", CLASSID_MUNITIONS, OBJECT_ICON },
  62. { "Dummy Object", CLASSID_DUMMY_OBJECTS, OBJECT_ICON },
  63. { "Cover Spots", CLASSID_COVERSPOT, OBJECT_ICON },
  64. { "Light", CLASSID_LIGHT, LIGHT_ICON },
  65. { "Sound", CLASSID_SOUND, SOUND_ICON },
  66. { "Waypath", CLASSID_WAYPATH, WAYPATH_ICON },
  67. { "Twiddlers", CLASSID_TWIDDLERS, RAND_ICON },
  68. { "Editor Objects", CLASSID_EDITOR_OBJECTS, VIS_ICON },
  69. { "Global Settings", CLASSID_GLOBAL_SETTINGS, OBJECT_ICON },
  70. };
  71. const int PRESET_CATEGORY_COUNT = sizeof (PRESET_CATEGORIES) / sizeof (CATEGORY_INFO);
  72. #endif //__NODE_CATEGORIES_H