OpenTTD Source: EffectProcs Struct Reference

OpenTTD Source 15.3

Public Types | Public Member Functions | Data Fields
EffectProcs Struct Reference

## Public Types
using | InitProc = void(EffectVehicle *)
using | TickProc = bool(EffectVehicle *)

## 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.

## Detailed Description

Definition at line 530 of file effectvehicle.cpp.

## Member Typedef Documentation

## ◆ InitProc

using EffectProcs::InitProc = void(EffectVehicle *)

Definition at line 531 of file effectvehicle.cpp.

## ◆ TickProc

using EffectProcs::TickProc = bool(EffectVehicle *)

Definition at line 532 of file effectvehicle.cpp.

## Constructor & Destructor Documentation

## ◆ EffectProcs()

constexpr EffectProcs::EffectProcs | ( | InitProc * | init_proc,
|  | TickProc * | tick_proc,
|  | TransparencyOption | transparency
| ) |  |
| inlineconstexpr

Definition at line 538 of file effectvehicle.cpp.

## Field Documentation

## ◆ init_proc

InitProc* EffectProcs::init_proc

Function to initialise an effect vehicle after construction.

Definition at line 534 of file effectvehicle.cpp.

## ◆ tick_proc

TickProc* EffectProcs::tick_proc

Functions for controlling effect vehicles at each tick.

Definition at line 535 of file effectvehicle.cpp.

## ◆ transparency

TransparencyOption EffectProcs::transparency

Transparency option affecting the effect.

Definition at line 536 of file effectvehicle.cpp.

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

- src/effectvehicle.cpp