mirror of
https://github.com/arabine/open-story-teller.git
synced 2025-12-06 17:09:06 +01:00
29 lines
701 B
C++
29 lines
701 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include "i_story_manager.h"
|
|
#include "base_node.h"
|
|
#include "i_script_node.h"
|
|
#include "i_story_project.h"
|
|
|
|
class MediaNode : public BaseNode
|
|
{
|
|
public:
|
|
MediaNode(const std::string &type);
|
|
|
|
virtual void Initialize() override;
|
|
virtual std::string Build(IStoryProject &story, int nb_out_conns) override;
|
|
virtual std::string GenerateConstants(IStoryProject &story, int nb_out_conns) override;
|
|
|
|
void SetImage(const std::string &image);
|
|
std::string_view GetImage() const;
|
|
void SetSound(const std::string &sound);
|
|
std::string_view GetSound() const;
|
|
void StoreInternalData();
|
|
|
|
private:
|
|
std::string m_image;
|
|
std::string m_sound;
|
|
};
|
|
|