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

Method DefSQConst

src/script/squirrel_class.hpp:76–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75 template <typename Var>
76 void DefSQConst(Squirrel &engine, Var value, std::string_view var_name)
77 {
78 engine.AddConst(var_name, value);
79 }
80
81 void PreRegister(Squirrel &engine)
82 {

Callers 2

RegisterAPIMethod · 0.80
RegisterAPIMethod · 0.80

Calls 1

AddConstMethod · 0.45

Tested by

no test coverage detected