2021-09-09 21:21:51 -04:00
|
|
|
#pragma once
|
2021-10-02 12:30:21 -04:00
|
|
|
#include "game/ui_scripting/lua/value_conversion.hpp"
|
2021-09-09 21:21:51 -04:00
|
|
|
#include "game/ui_scripting/menu.hpp"
|
2021-09-28 16:39:27 -04:00
|
|
|
#include "game/ui_scripting/event.hpp"
|
2021-09-09 21:21:51 -04:00
|
|
|
|
|
|
|
namespace ui_scripting
|
|
|
|
{
|
2021-09-30 18:55:14 -04:00
|
|
|
extern std::unordered_map<std::string, game::hks::lua_function> functions;
|
|
|
|
extern std::unordered_map<std::string, game::hks::lua_function> methods;
|
|
|
|
|
2021-10-02 12:30:21 -04:00
|
|
|
int main_function_handler(game::hks::lua_State* state);
|
|
|
|
void add_converted_function(game::hks::cclosure* closure, const sol::protected_function& function);
|
|
|
|
void clear_converted_functions();
|
|
|
|
|
2021-09-26 19:37:48 -04:00
|
|
|
void enable_error_hook();
|
|
|
|
void disable_error_hook();
|
|
|
|
|
|
|
|
game::hks::lua_function find_function(const std::string& name);
|
2021-09-28 16:39:27 -04:00
|
|
|
game::hks::lua_function find_method(const std::string& name);
|
|
|
|
|
2021-09-28 16:40:51 -04:00
|
|
|
void notify(const event& e);
|
2021-09-09 21:21:51 -04:00
|
|
|
}
|