Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
411
bool ScriptList::HasItem(SQInteger item)
412
{
413
return this->items.count(item) == 1;
414
}
415
416
void ScriptList::Clear()
417
{
Callers
3
AddItem
Method · 0.95
_set
Method · 0.95
SetValue
Method · 0.80
Calls
1
count
Method · 0.45
Tested by
no test coverage detected