h2-mod/src/client/component/ui_scripting.hpp

18 lines
484 B
C++
Raw Normal View History

2021-09-09 21:21:51 -04:00
#pragma once
#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-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
}