linux-wallpaperengine/WallpaperEngine/Core/Objects/CSound.h
Alexis Maiquez 654918904a ~ Changed namespace names for wp::core and wp to a more suited name
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2019-08-15 01:53:40 +02:00

41 lines
944 B
C++

#pragma once
#include <irrlicht/irrlicht.h>
#include <nlohmann/json.hpp>
#include "../CObject.h"
namespace WallpaperEngine::Core::Objects
{
using json = nlohmann::json;
class CSound : CObject
{
public:
static CObject* fromJSON (
json data,
bool visible,
irr::u32 id,
std::string name,
const irr::core::vector3df& origin,
const irr::core::vector3df& scale,
const irr::core::vector3df& angles
);
void insertSound (std::string filename);
std::vector<std::string>* getSounds ();
protected:
CSound (
bool visible,
irr::u32 id,
std::string name,
const irr::core::vector3df& origin,
const irr::core::vector3df& scale,
const irr::core::vector3df& angles
);
private:
std::vector<std::string> m_sounds;
};
}