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

Method IsTypeAvailable

src/object_gui.cpp:90–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 bool IsTypeAvailable(int cls_id, int id) const override
91 {
92 const auto *spec = this->GetSpec(cls_id, id);
93 return spec->IsAvailable();
94 }
95
96 void DrawType(int x, int y, int cls_id, int id) const override
97 {

Callers

nothing calls this directly

Calls 2

GetSpecMethod · 0.45
IsAvailableMethod · 0.45

Tested by

no test coverage detected