Add some functions

This commit is contained in:
Federico Cecchetto
2022-04-05 01:54:13 +02:00
parent 81e9ee451a
commit 03d38d5a10
5 changed files with 146 additions and 0 deletions

View File

@ -18,6 +18,7 @@ namespace scripting
{
std::unordered_map<int, std::unordered_map<std::string, int>> fields_table;
std::unordered_map<std::string, std::unordered_map<std::string, const char*>> script_function_table;
utils::concurrency::container<shared_table_t> shared_table;
namespace
{

View File

@ -3,6 +3,9 @@
namespace scripting
{
using shared_table_t = std::unordered_map<std::string, std::string>;
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;
extern utils::concurrency::container<shared_table_t> shared_table;
}