2021-04-23 03:46:11 +02:00
|
|
|
#pragma once
|
2022-01-04 17:57:09 +01:00
|
|
|
#include <utils/concurrency.hpp>
|
2021-04-23 03:46:11 +02:00
|
|
|
|
|
|
|
namespace scripting
|
|
|
|
{
|
2022-01-04 17:57:09 +01:00
|
|
|
using shared_table_t = std::unordered_map<std::string, std::string>;
|
|
|
|
|
2021-04-23 03:46:11 +02:00
|
|
|
extern std::unordered_map<int, std::unordered_map<std::string, int>> fields_table;
|
2021-08-30 04:58:10 +02:00
|
|
|
extern std::unordered_map<std::string, std::unordered_map<std::string, const char*>> script_function_table;
|
2022-08-24 19:07:14 +02:00
|
|
|
extern std::unordered_map<std::string, std::vector<std::pair<std::string, const char*>>> script_function_table_sort;
|
2022-01-04 17:57:09 +01:00
|
|
|
extern utils::concurrency::container<shared_table_t> shared_table;
|
2022-07-17 21:33:07 +02:00
|
|
|
|
|
|
|
extern std::unordered_map<std::string, int> get_dvar_int_overrides;
|
2022-08-24 19:07:14 +02:00
|
|
|
|
|
|
|
extern std::string current_file;
|
|
|
|
|
2022-11-13 19:16:48 +01:00
|
|
|
void on_shutdown(const std::function<void(bool, bool)>& callback);
|
2022-08-24 19:07:14 +02:00
|
|
|
std::optional<std::string> get_canonical_string(const unsigned int id);
|
2022-08-30 21:47:29 +02:00
|
|
|
std::string get_token_single(unsigned int id);
|
2023-03-07 19:34:33 +01:00
|
|
|
std::string get_token(unsigned int id);
|
2021-04-23 03:46:11 +02:00
|
|
|
}
|