OpenTTD Source  20240919-master-gdf0233f4c2
NewGRFCache Struct Reference

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.
 

Detailed Description

Cached often queried (NewGRF) values.

Definition at line 68 of file vehicle_base.h.


The documentation for this struct was generated from the following file: