h1-mod/src/client/game/scripting/functions.hpp

17 lines
499 B
C++
Raw Normal View History

2022-03-01 15:14:41 -05: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;
extern std::unordered_map<std::string, unsigned> token_map;
using script_function = void(*)(game::scr_entref_t);
2022-04-04 19:30:24 -04:00
std::vector<std::string> find_token(unsigned int id);
2022-03-01 15:14:41 -05:00
unsigned int find_token_id(const std::string& name);
script_function find_function(const std::string& name, const bool prefer_global);
}