mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
41 lines
944 B
C++
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;
|
|
};
|
|
}
|