W3DModuleFactory.cpp 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. ** Command & Conquer Generals Zero Hour(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: W3DModuleFactory.cpp /////////////////////////////////////////////////////////////////////
  24. // Author: Colin Day, April 2001
  25. // Desc: W3D specific module
  26. ///////////////////////////////////////////////////////////////////////////////////////////////////
  27. // INCLUDES ///////////////////////////////////////////////////////////////////////////////////////
  28. #include "W3DDevice/Common/W3DModuleFactory.h"
  29. #include "W3DDevice/GameClient/Module/W3DDebrisDraw.h"
  30. #include "W3DDevice/GameClient/Module/W3DDefaultDraw.h"
  31. #include "W3DDevice/GameClient/Module/W3DDependencyModelDraw.h"
  32. #include "W3DDevice/GameClient/Module/W3DModelDraw.h"
  33. #include "W3DDevice/GameClient/Module/W3DLaserDraw.h"
  34. #include "W3DDevice/GameClient/Module/W3DOverlordTankDraw.h"
  35. #include "W3DDevice/GameClient/Module/W3DOverlordTruckDraw.h"
  36. #include "W3DDevice/GameClient/Module/W3DOverlordAircraftDraw.h"
  37. #include "W3DDevice/GameClient/Module/W3DPoliceCarDraw.h"
  38. #include "W3DDevice/GameClient/Module/W3DProjectileStreamDraw.h"
  39. #include "W3DDevice/GameClient/Module/W3DRopeDraw.h"
  40. #include "W3DDevice/GameClient/Module/W3DSupplyDraw.h"
  41. #include "W3DDevice/GameClient/Module/W3DScienceModelDraw.h"
  42. #include "W3DDevice/GameClient/Module/W3DTankDraw.h"
  43. #include "W3DDevice/GameClient/Module/W3DTruckDraw.h"
  44. #include "W3DDevice/GameClient/Module/W3DTankTruckDraw.h"
  45. #include "W3DDevice/GameClient/Module/W3DTracerDraw.h"
  46. #include "W3DDevice/GameClient/Module/W3DTreeDraw.h"
  47. #include "W3DDevice/GameClient/Module/W3DPropDraw.h"
  48. //-------------------------------------------------------------------------------------------------
  49. /** Initialize method */
  50. //-------------------------------------------------------------------------------------------------
  51. void W3DModuleFactory::init( void )
  52. {
  53. // extending functionality
  54. ModuleFactory::init();
  55. // add the specific module templates we need for the draw methods
  56. addModule( W3DDefaultDraw );
  57. addModule( W3DDebrisDraw );
  58. addModule( W3DModelDraw );
  59. addModule( W3DLaserDraw );
  60. addModule( W3DOverlordTankDraw );
  61. addModule( W3DOverlordTruckDraw );
  62. addModule( W3DOverlordAircraftDraw );
  63. addModule( W3DProjectileStreamDraw );
  64. addModule( W3DPoliceCarDraw );
  65. addModule( W3DRopeDraw );
  66. addModule( W3DScienceModelDraw );
  67. addModule( W3DSupplyDraw );
  68. addModule( W3DDependencyModelDraw );
  69. addModule( W3DTankDraw );
  70. addModule( W3DTruckDraw );
  71. addModule( W3DTracerDraw );
  72. addModule( W3DTankTruckDraw );
  73. addModule( W3DTreeDraw );
  74. addModule( W3DPropDraw );
  75. } // end init