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

Method DoCommandReturnGoalID

src/script/script_instance.cpp:303–306  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

301}
302
303/* static */ void ScriptInstance::DoCommandReturnGoalID(ScriptInstance &instance)
304{
305 instance.engine->InsertResult(EndianBufferReader::ToValue<GoalID>(ScriptObject::GetLastCommandResData()));
306}
307
308/* static */ void ScriptInstance::DoCommandReturnStoryPageID(ScriptInstance &instance)
309{

Callers

nothing calls this directly

Calls 1

InsertResultMethod · 0.45

Tested by

no test coverage detected