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

Method AddConstructor

src/script/squirrel_class.hpp:92–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91 template <typename Func>
92 void AddConstructor(Squirrel &engine, std::string_view params)
93 {
94 using namespace SQConvert;
95 engine.AddMethod("constructor", DefSQConstructorCallback<CL, Func>, params);
96 }
97
98 void AddSQAdvancedConstructor(Squirrel &engine)
99 {

Callers

nothing calls this directly

Calls 1

AddMethodMethod · 0.80

Tested by

no test coverage detected