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

Method SetSelectedClass

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

Source from the content-addressed store, hash-verified

63
64 int GetSelectedClass() const override { return _object_gui.sel_class; }
65 void SetSelectedClass(int id) const override { _object_gui.sel_class = this->GetClassIndex(id); }
66
67 StringID GetClassName(int id) const override
68 {

Callers

nothing calls this directly

Calls 1

GetClassIndexMethod · 0.80

Tested by

no test coverage detected