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

Method GetTypeCount

src/picker_gui.h:118–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117 int GetClassCount() const override { return T::GetClassCount(); }
118 int GetTypeCount(int cls_id) const override { return this->GetClass(cls_id)->GetSpecCount(); }
119
120 PickerItem GetPickerItem(const typename T::spec_type *spec, int cls_id = -1, int id = -1) const
121 {

Callers

nothing calls this directly

Calls 2

GetClassMethod · 0.95
GetSpecCountMethod · 0.80

Tested by

no test coverage detected