W3DModuleFactory.cpp 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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: 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/W3DPoliceCarDraw.h"
  36. #include "W3DDevice/GameClient/Module/W3DProjectileStreamDraw.h"
  37. #include "W3DDevice/GameClient/Module/W3DRopeDraw.h"
  38. #include "W3DDevice/GameClient/Module/W3DSupplyDraw.h"
  39. #include "W3DDevice/GameClient/Module/W3DScienceModelDraw.h"
  40. #include "W3DDevice/GameClient/Module/W3DTankDraw.h"
  41. #include "W3DDevice/GameClient/Module/W3DTruckDraw.h"
  42. #include "W3DDevice/GameClient/Module/W3DTankTruckDraw.h"
  43. #include "W3DDevice/GameClient/Module/W3DTracerDraw.h"
  44. //-------------------------------------------------------------------------------------------------
  45. /** Initialize method */
  46. //-------------------------------------------------------------------------------------------------
  47. void W3DModuleFactory::init( void )
  48. {
  49. // extending functionality
  50. ModuleFactory::init();
  51. // add the specific module templates we need for the draw methods
  52. addModule( W3DDefaultDraw );
  53. addModule( W3DDebrisDraw );
  54. addModule( W3DModelDraw );
  55. addModule( W3DLaserDraw );
  56. addModule( W3DOverlordTankDraw );
  57. addModule( W3DProjectileStreamDraw );
  58. addModule( W3DPoliceCarDraw );
  59. addModule( W3DRopeDraw );
  60. addModule( W3DScienceModelDraw );
  61. addModule( W3DSupplyDraw );
  62. addModule( W3DDependencyModelDraw );
  63. addModule( W3DTankDraw );
  64. addModule( W3DTruckDraw );
  65. addModule( W3DTracerDraw );
  66. addModule( W3DTankTruckDraw );
  67. } // end init