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

Method GetSelectedType

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

Source from the content-addressed store, hash-verified

1522 }
1523
1524 int GetSelectedType() const override { return sel_type; }
1525 void SetSelectedType(int id) const override { sel_type = id; }
1526
1527 static HouseZone GetHouseZoneFromClassId(int cls_id) { return static_cast<HouseZone>(to_underlying(HouseZone::TownEdge) + cls_id); }

Callers 3

DrawWidgetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected