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

Method ResetEngine

src/script/script_scanner.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47ScriptScanner::ScriptScanner() = default;
48
49void ScriptScanner::ResetEngine()
50{
51 this->engine->Reset();
52 this->engine->SetGlobalPointer(this);
53 this->RegisterAPI(*this->engine);
54}
55
56void ScriptScanner::Initialize(std::string_view name)
57{

Callers 2

AddFileMethod · 0.95
InitializeMethod · 0.95

Calls 3

SetGlobalPointerMethod · 0.80
ResetMethod · 0.45
RegisterAPIMethod · 0.45

Tested by

no test coverage detected