| 1881 | } |
| 1882 | |
| 1883 | CargoTypes GetCargoTypes(WindowNumber window_number) const override |
| 1884 | { |
| 1885 | CargoTypes cargo_types{}; |
| 1886 | const Town *t = Town::Get(window_number); |
| 1887 | for (const auto &s : t->supplied) { |
| 1888 | if (IsValidCargoType(s.cargo)) SetBit(cargo_types, s.cargo); |
| 1889 | } |
| 1890 | return cargo_types; |
| 1891 | } |
| 1892 | |
| 1893 | CargoTypes &GetExcludedCargoTypes() const override |
| 1894 | { |
no test coverage detected