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

Method GetValue

src/script/api/script_list.cpp:485–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485SQInteger ScriptList::GetValue(SQInteger item)
486{
487 auto item_iter = this->items.find(item);
488 return item_iter == this->items.end() ? 0 : item_iter->second;
489}
490
491bool ScriptList::SetValue(SQInteger item, SQInteger value)
492{

Callers 2

SetValueMethod · 0.45
AfterLoadGameFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected