2021-04-23 03:46:11 +02:00
|
|
|
#pragma once
|
|
|
|
#include "game/game.hpp"
|
|
|
|
|
|
|
|
namespace scripting
|
|
|
|
{
|
|
|
|
extern std::unordered_map<std::string, unsigned> method_map;
|
|
|
|
extern std::unordered_map<std::string, unsigned> function_map;
|
2021-08-29 22:53:20 +02:00
|
|
|
extern std::unordered_map<std::string, unsigned> token_map;
|
2021-08-30 04:58:10 +02:00
|
|
|
extern std::unordered_map<unsigned, std::string> file_list;
|
2021-04-23 03:46:11 +02:00
|
|
|
|
|
|
|
using script_function = void(*)(game::scr_entref_t);
|
|
|
|
|
2021-08-30 04:58:10 +02:00
|
|
|
std::string find_token(unsigned int id);
|
2021-08-29 22:53:20 +02:00
|
|
|
unsigned int find_token_id(const std::string& name);
|
2021-04-23 03:46:11 +02:00
|
|
|
script_function find_function(const std::string& name, const bool prefer_global);
|
|
|
|
}
|