Hymn to Beauty
C++ 3D Engine
ScriptFile.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4#include <string>
5#include <json/json.h>
6
8class ScriptFile {
9 public:
11
14 Json::Value Save() const;
15
17
20 void Load(const std::string& name);
21
23 std::string name = "";
24
26 std::string path;
27
29 std::string module = "";
30
32 std::vector<std::string> functionList;
33};
Information about a file containing a script.
Definition: ScriptFile.hpp:8
std::string name
The name of the script.
Definition: ScriptFile.hpp:23
std::string module
The name of the module.
Definition: ScriptFile.hpp:29
void Load(const std::string &name)
Loads the script information.
Definition: ScriptFile.cpp:10
std::string path
The folder containing the script file.
Definition: ScriptFile.hpp:26
std::vector< std::string > functionList
A list containing all the functions for the script.
Definition: ScriptFile.hpp:32
Json::Value Save() const
Saves the scriptfile to Json value.
Definition: ScriptFile.cpp:3