iw5-mod/src/module/scripting.hpp

16 lines
551 B
C++
Raw Normal View History

2022-12-03 15:41:24 +00:00
#pragma once
namespace scripting
{
extern std::unordered_map<std::string, std::unordered_map<std::string, const char*>> script_function_table;
extern std::unordered_map<std::string, std::vector<std::pair<std::string, const char*>>> script_function_table_sort;
extern std::unordered_map<const char*, std::pair<std::string, std::string>> script_function_table_rev;
extern std::string current_file;
2023-02-27 20:19:38 +00:00
std::string find_token(std::uint32_t id);
2022-12-03 15:41:24 +00:00
std::string get_token(unsigned int id);
2022-12-12 14:59:31 +01:00
void on_shutdown(const std::function<void(int)>& callback);
2022-12-03 15:41:24 +00:00
}