Added Input pressed, released system Added interface button support with wren onclick callback
24 lines
518 B
C++
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);
|
|
}; |