w3ddesc.cpp 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. /* $Header: /Commando/Code/Tools/max2w3d/w3ddesc.cpp 3 3/04/99 1:58p Naty_h $ */
  19. /***********************************************************************************************
  20. *** Confidential - Westwood Studios ***
  21. ***********************************************************************************************
  22. * *
  23. * Project Name : Commando Tools - W3D export *
  24. * *
  25. * $Archive:: /Commando/Code/Tools/max2w3d/w3ddesc.cpp $*
  26. * *
  27. * $Author:: Naty_h $*
  28. * *
  29. * $Modtime:: 3/03/99 11:29a $*
  30. * *
  31. * $Revision:: 3 $*
  32. * *
  33. *---------------------------------------------------------------------------------------------*
  34. * Functions: *
  35. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  36. #include "w3ddesc.h"
  37. #include "w3dexp.h"
  38. #include "dllmain.h"
  39. /***********************************************************************************************
  40. * W3dClassDesc::Create -- Creates a W3dExportClass object *
  41. * *
  42. * MAX calls this method when it needs a pointer to a new instance of the plug-in class. *
  43. * *
  44. * INPUT: *
  45. * *
  46. * OUTPUT: *
  47. * *
  48. * WARNINGS: *
  49. * *
  50. * HISTORY: *
  51. * 06/09/1997 GH : Created. *
  52. *=============================================================================================*/
  53. void * W3dClassDesc::Create(BOOL)
  54. {
  55. return new W3dExportClass;
  56. }
  57. /***********************************************************************************************
  58. * W3dClassDesc::IsPublic -- Controls if the plug-in shows up in lists from the user to choose *
  59. * *
  60. * Controls if the plug-in shows up in lists from the user to choose from. *
  61. * *
  62. * INPUT: none *
  63. * *
  64. * OUTPUT: true! *
  65. * *
  66. * WARNINGS: *
  67. * *
  68. * HISTORY: *
  69. * 06/09/1997 GH : Created. *
  70. *=============================================================================================*/
  71. int W3dClassDesc::IsPublic()
  72. {
  73. return 1;
  74. }
  75. /***********************************************************************************************
  76. * W3dClassDesc::ClassName -- returns the name of the class *
  77. * *
  78. * This method returns the name of the class. This name appears in the button for the *
  79. * plug-in in the MAX user interface. *
  80. * *
  81. * INPUT: none *
  82. * *
  83. * OUTPUT: Name of the class *
  84. * *
  85. * WARNINGS: *
  86. * *
  87. * HISTORY: *
  88. * 06/09/1997 GH : Created. *
  89. *=============================================================================================*/
  90. const TCHAR * W3dClassDesc::ClassName()
  91. {
  92. return Get_String(IDS_W3D_SHORT_DESCRIPTION);
  93. }
  94. /***********************************************************************************************
  95. * W3dClassDesc::SuperClassID -- returns the SuperClassID of the plug-in. *
  96. * *
  97. * INPUT: none *
  98. * *
  99. * OUTPUT: The SuperClassID of the plug-in. *
  100. * *
  101. * WARNINGS: *
  102. * *
  103. * HISTORY: *
  104. * 06/09/1997 GH : Created. *
  105. *=============================================================================================*/
  106. SClass_ID W3dClassDesc::SuperClassID()
  107. {
  108. return SCENE_EXPORT_CLASS_ID;
  109. }
  110. /***********************************************************************************************
  111. * W3dClassDesc::ClassID -- Returns the class ID *
  112. * *
  113. * This method must return the unique ID for the object. If two ClassIDs conflict, the *
  114. * system will only load the first one it finds. The ClassID consists of two unsigned 32-bit *
  115. * quantities. *
  116. * *
  117. * INPUT: none *
  118. * *
  119. * OUTPUT: The unique ClassID of the plug-in. *
  120. * *
  121. * WARNINGS: *
  122. * *
  123. * HISTORY: *
  124. * 06/09/1997 GH : Created. *
  125. *=============================================================================================*/
  126. Class_ID W3dClassDesc::ClassID()
  127. {
  128. return W3D_EXPORTER_CLASS_ID;
  129. }
  130. /***********************************************************************************************
  131. * W3dClassDesc::Category -- returns a string describing the category a plug-in fits into *
  132. * *
  133. * INPUT: *
  134. * *
  135. * OUTPUT: *
  136. * *
  137. * WARNINGS: *
  138. * *
  139. * HISTORY: *
  140. * 06/09/1997 GH : Created. *
  141. *=============================================================================================*/
  142. const TCHAR * W3dClassDesc::Category()
  143. {
  144. return Get_String(IDS_SCENE_EXPORT);
  145. }