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

Method GetSelectedClass

src/town_gui.cpp:1501–1501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1499 void Close([[maybe_unused]] int data) override { ResetObjectToPlace(); }
1500
1501 int GetSelectedClass() const override { return HousePickerCallbacks::sel_class; }
1502 void SetSelectedClass(int cls_id) const override { HousePickerCallbacks::sel_class = cls_id; }
1503
1504 StringID GetClassName(int id) const override

Callers 7

DrawWidgetMethod · 0.45
OnClickMethod · 0.45
BuildPickerTypeListMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected