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

Method SetSelectedClass

src/road_gui.cpp:1654–1654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1652 void Close(int) override { ResetObjectToPlace(); }
1653 int GetSelectedClass() const override { return _waypoint_gui.sel_class; }
1654 void SetSelectedClass(int id) const override { _waypoint_gui.sel_class = this->GetClassIndex(id); }
1655
1656 StringID GetClassName(int id) const override
1657 {

Callers

nothing calls this directly

Calls 1

GetClassIndexMethod · 0.80

Tested by

no test coverage detected