MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / DefSQAdvancedStaticMethod

Method DefSQAdvancedStaticMethod

src/script/squirrel_class.hpp:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 */
68 template <typename Func>
69 void DefSQAdvancedStaticMethod(Squirrel &engine, Func function_proc, std::string_view function_name)
70 {
71 using namespace SQConvert;
72 engine.AddMethod(function_name, DefSQAdvancedStaticCallback<CL, Func>, {}, &function_proc, sizeof(function_proc));
73 }
74
75 template <typename Var>
76 void DefSQConst(Squirrel &engine, Var value, std::string_view var_name)

Callers

nothing calls this directly

Calls 1

AddMethodMethod · 0.80

Tested by

no test coverage detected