feat: Added support for writing scripts in Python

This commit is contained in:
WerWolv
2024-03-24 11:06:01 +01:00
parent e984fde966
commit 3144d79605
17 changed files with 436 additions and 82 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include <loaders/loader.hpp>
#include <wolv/io/fs.hpp>
#include <functional>
namespace hex::script::loader {
class PythonLoader : public ScriptLoader {
public:
PythonLoader() : ScriptLoader("Python") {}
~PythonLoader() override = default;
bool initialize() override;
bool loadAll() override;
private:
struct Script {
void *module;
void *mainFunction;
};
std::vector<Script> m_scripts;
};
}