|
OpenTTD Source 20260218-master-g2123fca5ea
|
Container holding functions to call for a specific effect vehicle type. More...
Public Types | |
| using | InitProc = void(EffectVehicle *v) |
| Initialises effect vehicle for a specific type. | |
| using | TickProc = bool(EffectVehicle *v) |
| Run the actions/perform the behaviour of an effect vehicle for a tick. | |
Public Member Functions | |
| constexpr | EffectProcs (InitProc *init_proc, TickProc *tick_proc, TransparencyOption transparency) |
Data Fields | |
| InitProc * | init_proc |
| Function to initialise an effect vehicle after construction. | |
| TickProc * | tick_proc |
| Functions for controlling effect vehicles at each tick. | |
| TransparencyOption | transparency |
| Transparency option affecting the effect. | |
Container holding functions to call for a specific effect vehicle type.
Definition at line 551 of file effectvehicle.cpp.
| using EffectProcs::InitProc = void(EffectVehicle *v) |
Initialises effect vehicle for a specific type.
| v | The vehicle to initialise. |
Definition at line 556 of file effectvehicle.cpp.
| using EffectProcs::TickProc = bool(EffectVehicle *v) |
Run the actions/perform the behaviour of an effect vehicle for a tick.
| v | The vehicle to work with. |
true iff the vehicle is still valid, i.e. has not been removed yet. Definition at line 563 of file effectvehicle.cpp.
|
inlineconstexpr |
Definition at line 569 of file effectvehicle.cpp.
| InitProc* EffectProcs::init_proc |
Function to initialise an effect vehicle after construction.
Definition at line 565 of file effectvehicle.cpp.
| TickProc* EffectProcs::tick_proc |
Functions for controlling effect vehicles at each tick.
Definition at line 566 of file effectvehicle.cpp.
| TransparencyOption EffectProcs::transparency |
Transparency option affecting the effect.
Definition at line 567 of file effectvehicle.cpp.