CRotationRandom.h 540 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "../CInitializer.h"
  3. #include <nlohmann/json.hpp>
  4. #include <irrlicht/irrlicht.h>
  5. namespace wp::core::Objects::Particles::Initializers
  6. {
  7. class CRotationRandom : CInitializer
  8. {
  9. public:
  10. irr::f64 getMinimum ();
  11. irr::f64 getMaximum ();
  12. protected:
  13. friend class CInitializer;
  14. static CRotationRandom* fromJSON (json data, irr::u32 id);
  15. CRotationRandom (irr::u32 id, irr::f64 min, irr::f64 max);
  16. private:
  17. irr::f64 m_max;
  18. irr::f64 m_min;
  19. };
  20. };