|
OpenTTD Source 20261112-master-gbcbec5e63f
|
Comparator to sort CargoType by according to desired order. More...
#include <cargotype.h>
Public Member Functions | |
| bool | operator() (const CargoType &lhs, const CargoType &rhs) const |
| Call operator that performs the comparison. | |
Comparator to sort CargoType by according to desired order.
Definition at line 294 of file cargotype.h.
Call operator that performs the comparison.
| lhs | Cargo to compare that is in previous spot in the sorted container. |
| rhs | Cargo to compare that is in later spot in the sorted container. |
true iff the lhs and rhs should be swapped in order to sort the container. Definition at line 301 of file cargotype.h.
References _sorted_cargo_types.