Files
Nuake-custom/Nuake/src/Scripting/WrenScript.h
Antoine Pilote 19db72aa22 Added Wren scripting with module system 📚
Added Input pressed, released system
Added interface button support with wren onclick callback
2021-06-09 22:15:53 -04:00

24 lines
518 B
C++

#pragma once
#include "ScriptingEngine.h"
#include <map>
#include <string>
class WrenHandle;
class WrenScript
{
public:
std::map <std::string, WrenHandle*> methods;
WrenHandle* m_Instance;
WrenHandle* m_OnInitHandle;
WrenHandle* m_OnUpdateHandle;
WrenHandle* m_OnExitHandle;
WrenScript(const std::string& path, const std::string& mod);
void CallInit();
void CallUpdate(float timestep);
void CallExit();
void RegisterMethod(const std::string& signature);
void CallMethod(const std::string& signature);
};