2022-03-01 15:14:41 -05:00
|
|
|
#pragma once
|
|
|
|
#include <utils/concurrency.hpp>
|
|
|
|
|
|
|
|
namespace scripting
|
|
|
|
{
|
2022-04-04 19:54:13 -04:00
|
|
|
using shared_table_t = std::unordered_map<std::string, std::string>;
|
|
|
|
|
2022-03-01 15:14:41 -05: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-04-04 19:54:13 -04:00
|
|
|
extern utils::concurrency::container<shared_table_t> shared_table;
|
2022-06-30 11:03:41 -04:00
|
|
|
|
|
|
|
void on_shutdown(const std::function<void()>& callback);
|
2022-03-01 15:14:41 -05:00
|
|
|
}
|