|
OpenTTD Source 20260311-master-g511d3794ce
|
Variables that are cached to improve performance and such. More...
#include <train.h>
Public Member Functions | |
| auto | operator<=> (const TrainCache &other) const =default |
| Compare variables with another instance of this class. | |
Data Fields | |
| const struct SpriteGroup * | cached_override = nullptr |
| Cached wagon override spritegroup. | |
| bool | cached_tilt = false |
| train can tilt; feature provides a bonus in curves | |
| uint8_t | user_def_data = 0 |
| Cached property 0x25. Can be set by Callback 0x36. | |
| int16_t | cached_curve_speed_mod = 0 |
| curve speed modifier of the entire train | |
| uint16_t | cached_max_curve_speed = 0 |
| max consist speed limited by curves | |
|
default |
Compare variables with another instance of this class.
| other | The other instance of TrainCache. |
| int16_t TrainCache::cached_curve_speed_mod = 0 |
| uint16_t TrainCache::cached_max_curve_speed = 0 |
max consist speed limited by curves
Definition at line 84 of file train.h.
Referenced by TrainController().
| const struct SpriteGroup* TrainCache::cached_override = nullptr |
Cached wagon override spritegroup.
Definition at line 77 of file train.h.
Referenced by UsesWagonOverride(), and VehicleResolverObject::VehicleResolverObject().
| bool TrainCache::cached_tilt = false |
| uint8_t TrainCache::user_def_data = 0 |