mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-07-03 17:51:55 +00:00
Use function class
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
namespace gsc
|
||||
{
|
||||
extern std::unordered_map<unsigned, unsigned> replaced_functions;
|
||||
extern std::unordered_map<const char*, const char*> replaced_functions;
|
||||
|
||||
class function_args
|
||||
{
|
||||
@ -24,8 +24,8 @@ namespace gsc
|
||||
using builtin_function = void(*)();
|
||||
using builtin_method = void(*)(game::scr_entref_t);
|
||||
|
||||
using script_function = std::function<scripting::script_value(function_args)>;
|
||||
using script_method = std::function<scripting::script_value(game::scr_entref_t, function_args)>;
|
||||
using script_function = std::function<scripting::script_value(const function_args&)>;
|
||||
using script_method = std::function<scripting::script_value(const game::scr_entref_t, const function_args&)>;
|
||||
|
||||
namespace function
|
||||
{
|
||||
|
Reference in New Issue
Block a user