ParticleSystemFactory.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (C) 2022 The V-Gears Team
  3. *
  4. * This file is part of V-Gears
  5. *
  6. * V-Gears is free software: you can redistribute it and/or modify it under
  7. * terms of the GNU General Public License as published by the Free Software
  8. * Foundation, version 3.0 (GPLv3) of the License.
  9. *
  10. * V-Gears 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. #pragma once
  16. #include <OgreMovableObject.h>
  17. /**
  18. * A particle system factory.
  19. */
  20. class ParticleSystemFactory : public Ogre::MovableObjectFactory{
  21. public:
  22. /**
  23. * Constructor.
  24. */
  25. ParticleSystemFactory(){};
  26. /**
  27. * Destructor.
  28. */
  29. ~ParticleSystemFactory(){};
  30. /**
  31. * Type of the particle systems
  32. */
  33. static Ogre::String FACTORY_TYPE_NAME;
  34. /**
  35. * Retrieves the particle systems type.
  36. *
  37. * @return The particle systems type.
  38. */
  39. const Ogre::String& getType() const;
  40. private:
  41. /**
  42. * Creates an instance from a template.
  43. *
  44. * @param[in] name Name for the particle system
  45. * @param[in] params List of parameters for the particle system.
  46. */
  47. Ogre::MovableObject* createInstanceImpl(
  48. const Ogre::String& name, const Ogre::NameValuePairList* params
  49. );
  50. };