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

Method SetSelectedType

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

Source from the content-addressed store, hash-verified

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); }
1528 static int GetClassIdFromHouseZone(HouseZones zones) { return FindFirstBit((zones & HZ_ZONE_ALL).base()) - to_underlying(HouseZone::TownEdge); }

Callers 2

OnClickMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected