OpenTTD Source  20241108-master-g80f628063a
TrainCache Struct Reference

Variables that are cached to improve performance and such. More...

#include <train.h>

Public Member Functions

auto operator<=> (const TrainCache &) const =default
 

Data Fields

const struct SpriteGroupcached_override
 
bool cached_tilt
 train can tilt; feature provides a bonus in curves
 
uint8_t user_def_data
 Cached property 0x25. Can be set by Callback 0x36.
 
int16_t cached_curve_speed_mod
 curve speed modifier of the entire train
 
uint16_t cached_max_curve_speed
 max consist speed limited by curves
 

Detailed Description

Variables that are cached to improve performance and such.

Definition at line 72 of file train.h.


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