2022-03-01 22:14:41 +02:00
|
|
|
#pragma once
|
|
|
|
#include <utils/concurrency.hpp>
|
|
|
|
|
|
|
|
namespace scripting
|
|
|
|
{
|
2022-04-05 01:54:13 +02:00
|
|
|
using shared_table_t = std::unordered_map<std::string, std::string>;
|
|
|
|
|
2022-03-01 22:14:41 +02:00
|
|
|
extern std::unordered_map<int, std::unordered_map<std::string, int>> fields_table;
|
|
|
|
extern std::unordered_map<std::string, std::unordered_map<std::string, const char*>> script_function_table;
|
2022-09-11 12:14:42 -05:00
|
|
|
extern std::unordered_map<std::string, std::vector<std::pair<std::string, const char*>>> script_function_table_sort;
|
2022-10-18 05:38:06 -05:00
|
|
|
extern std::unordered_map<const char*, std::pair<std::string, std::string>> script_function_table_rev;
|
|
|
|
|
2022-04-05 01:54:13 +02:00
|
|
|
extern utils::concurrency::container<shared_table_t> shared_table;
|
2022-06-30 10:03:41 -05:00
|
|
|
|
2022-09-11 12:14:42 -05:00
|
|
|
extern std::string current_file;
|
|
|
|
|
|
|
|
void on_shutdown(const std::function<void(bool)>& callback);
|
|
|
|
std::optional<std::string> get_canonical_string(const unsigned int id);
|
|
|
|
std::string get_token(unsigned int id);
|
2022-03-01 22:14:41 +02:00
|
|
|
}
|