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

Method HasItem

src/script/api/script_list.cpp:411–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411bool ScriptList::HasItem(SQInteger item)
412{
413 return this->items.count(item) == 1;
414}
415
416void ScriptList::Clear()
417{

Callers 3

AddItemMethod · 0.95
_setMethod · 0.95
SetValueMethod · 0.80

Calls 1

countMethod · 0.45

Tested by

no test coverage detected