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

Method SetSelectedClass

src/rail_gui.cpp:1818–1818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1816 void Close(int) override { ResetObjectToPlace(); }
1817 int GetSelectedClass() const override { return _waypoint_gui.sel_class; }
1818 void SetSelectedClass(int id) const override { _waypoint_gui.sel_class = this->GetClassIndex(id); }
1819
1820 StringID GetClassName(int id) const override
1821 {

Callers

nothing calls this directly

Calls 1

GetClassIndexMethod · 0.80

Tested by

no test coverage detected