OpenTTD Source 20241224-master-gf74b0cf984
|
Cached often queried (NewGRF) values. More...
#include <vehicle_base.h>
Public Member Functions | |
auto | operator<=> (const NewGRFCache &) const =default |
Data Fields | |
uint32_t | position_consist_length |
Cache for NewGRF var 40. | |
uint32_t | position_same_id_length |
Cache for NewGRF var 41. | |
uint32_t | consist_cargo_information |
Cache for NewGRF var 42. (Note: The cargotype is untranslated in the cache because the accessing GRF is yet unknown.) | |
uint32_t | company_information |
Cache for NewGRF var 43. | |
uint32_t | position_in_vehicle |
Cache for NewGRF var 4D. | |
uint8_t | cache_valid |
Bitset that indicates which cache values are valid. | |
Cached often queried (NewGRF) values.
Definition at line 68 of file vehicle_base.h.
uint8_t NewGRFCache::cache_valid |
Bitset that indicates which cache values are valid.
Definition at line 75 of file vehicle_base.h.
Referenced by FillNewGRFVehicleCache(), and Vehicle::InvalidateNewGRFCache().
uint32_t NewGRFCache::company_information |
Cache for NewGRF var 43.
Definition at line 73 of file vehicle_base.h.
uint32_t NewGRFCache::consist_cargo_information |
Cache for NewGRF var 42. (Note: The cargotype is untranslated in the cache because the accessing GRF is yet unknown.)
Definition at line 72 of file vehicle_base.h.
uint32_t NewGRFCache::position_consist_length |
Cache for NewGRF var 40.
Definition at line 70 of file vehicle_base.h.
uint32_t NewGRFCache::position_in_vehicle |
Cache for NewGRF var 4D.
Definition at line 74 of file vehicle_base.h.
uint32_t NewGRFCache::position_same_id_length |
Cache for NewGRF var 41.
Definition at line 71 of file vehicle_base.h.