ParticleEmitterDictionary.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 <OgreStringInterface.h>
  17. namespace ParticleEmitterDictionary{
  18. /**
  19. * The emission rate of a particle emitter.
  20. */
  21. class EmissionRate : public Ogre::ParamCommand{
  22. public:
  23. /**
  24. * Retrieves the emission rate.
  25. *
  26. * @return Emission rate.
  27. */
  28. Ogre::String doGet(const void* target) const{return "";};
  29. /**
  30. * Sets the emission rate
  31. *
  32. * @param val[in] The emission rate.
  33. */
  34. void doSet(void* target, const Ogre::String& val);
  35. };
  36. /**
  37. * The total time to live for particles emitted by an emitter.
  38. */
  39. class TotalTimeToLive : public Ogre::ParamCommand{
  40. public:
  41. /**
  42. * Retrieves the total time to live.
  43. *
  44. * @return Total time to live.
  45. */
  46. Ogre::String doGet(const void* target) const{return "";};
  47. /**
  48. * Sets the total time to live.
  49. *
  50. * @param val[in] Total time to live.
  51. */
  52. void doSet(void* target, const Ogre::String& val);
  53. };
  54. /**
  55. * The direction at which an emitter emits particles.
  56. */
  57. class Direction : public Ogre::ParamCommand{
  58. public:
  59. /**
  60. * Retrieves the direction.
  61. *
  62. * @return The direction.
  63. */
  64. Ogre::String doGet(const void* target) const {return "";};
  65. /**
  66. * Sets the direction.
  67. *
  68. * @param val[in] The direction.
  69. */
  70. void doSet(void* target, const Ogre::String& val);
  71. };
  72. }