Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenTTD/OpenTTD
/ AddTile
Method
AddTile
src/script/api/script_tilelist.cpp:42–47 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
40
}
41
42
void ScriptTileList::AddTile(TileIndex tile)
43
{
44
if (!::IsValidTile(tile)) return;
45
46
this->AddItem(tile.base());
47
}
48
49
void ScriptTileList::RemoveRectangle(TileIndex t1, TileIndex t2)
50
{
Callers
4
ScriptTileList_IndustryAccepting
Method · 0.80
ScriptTileList_IndustryProducing
Method · 0.80
ScriptTileList_StationType
Method · 0.80
ScriptTileList_StationCoverage
Method · 0.80
Calls
3
IsValidTile
Function · 0.85
AddItem
Method · 0.80
base
Method · 0.45
Tested by
no test coverage detected