add generator definition file (.toml)

This commit is contained in:
MihailRis
2024-09-26 22:26:01 +03:00
parent d839da7dab
commit 3d478aef08
12 changed files with 76 additions and 54 deletions
+2
View File
@@ -33,6 +33,7 @@ class LevelController;
class Entity;
struct EntityDef;
class GeneratorScript;
struct GeneratorDef;
namespace scripting {
extern Engine* engine;
@@ -147,6 +148,7 @@ namespace scripting {
void load_entity_component(const std::string& name, const fs::path& file);
std::unique_ptr<GeneratorScript> load_generator(
const GeneratorDef& def,
const fs::path& file
);