mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-15 22:02:29 +08:00

+ Added partial parsing of particles + Support for particle emitter parsing + Support for particle initializers parsing + Support for particle controlpoints parsing Signed-off-by: Alexis Maiquez <almamu@almamu.com>
26 lines
475 B
C++
26 lines
475 B
C++
#pragma once
|
|
|
|
#include <nlohmann/json.hpp>
|
|
#include <irrlicht/irrlicht.h>
|
|
|
|
namespace wp::core::objects::particles
|
|
{
|
|
using json = nlohmann::json;
|
|
|
|
class initializer
|
|
{
|
|
public:
|
|
std::string& getName ();
|
|
irr::u32 getId ();
|
|
protected:
|
|
friend class particle;
|
|
|
|
static initializer* fromJSON (json data);
|
|
|
|
initializer (irr::u32 id, std::string name);
|
|
private:
|
|
irr::u32 m_id;
|
|
std::string m_name;
|
|
};
|
|
};
|