Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenTTD/OpenTTD
/ PreRegister
Method
PreRegister
src/script/squirrel_class.hpp:81–84 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
79
}
80
81
void PreRegister(Squirrel &engine)
82
{
83
engine.AddClassBegin(this->classname);
84
}
85
86
void PreRegister(Squirrel &engine, std::string_view parent_class)
87
{
Callers
4
RegisterAPI
Method · 0.80
SQGSController_Register
Function · 0.80
SQAIController_Register
Function · 0.80
RegisterAPI
Method · 0.80
Calls
1
AddClassBegin
Method · 0.80
Tested by
no test coverage detected