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

Method GetTypeCount

src/town_gui.cpp:1511–1515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1509 }
1510
1511 int GetTypeCount(int cls_id) const override
1512 {
1513 if (cls_id < GetClassCount()) return static_cast<int>(HouseSpec::Specs().size());
1514 return 0;
1515 }
1516
1517 PickerItem GetPickerItem(int cls_id, int id) const override
1518 {

Callers 1

SetClimateMaskMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected