OpenTTD Source 20250509-master-ga45f23686d
InvokeGrfActionHandler Struct Reference

Helper class to invoke a GrfActionHandler. More...

Public Types

using Invoker = void(*)(ByteReader &buf, GrfLoadingStage stage)
 

Static Public Member Functions

template<uint8_t TAction>
static void Invoke (ByteReader &buf, GrfLoadingStage stage)
 
static void Invoke (uint8_t action, GrfLoadingStage stage, ByteReader &buf)
 

Static Public Attributes

static constexpr Invoker funcs []
 

Detailed Description

Helper class to invoke a GrfActionHandler.

Definition at line 1193 of file newgrf.cpp.

Member Typedef Documentation

◆ Invoker

using InvokeGrfActionHandler::Invoker = void(*)(ByteReader &buf, GrfLoadingStage stage)

Definition at line 1208 of file newgrf.cpp.

Member Function Documentation

◆ Invoke() [1/2]

template<uint8_t TAction>
static void InvokeGrfActionHandler::Invoke ( ByteReader buf,
GrfLoadingStage  stage 
)
inlinestatic

Definition at line 1195 of file newgrf.cpp.

◆ Invoke() [2/2]

static void InvokeGrfActionHandler::Invoke ( uint8_t  action,
GrfLoadingStage  stage,
ByteReader buf 
)
inlinestatic

Definition at line 1215 of file newgrf.cpp.

Field Documentation

◆ funcs

constexpr Invoker InvokeGrfActionHandler::funcs[]
staticconstexpr
Initial value:
= {
Invoke<0x00>, Invoke<0x01>, Invoke<0x02>, Invoke<0x03>, Invoke<0x04>, Invoke<0x05>, Invoke<0x06>, Invoke<0x07>,
Invoke<0x08>, Invoke<0x09>, Invoke<0x0A>, Invoke<0x0B>, Invoke<0x0C>, Invoke<0x0D>, Invoke<0x0E>, Invoke<0x0F>,
Invoke<0x10>, Invoke<0x11>, Invoke<0x12>, Invoke<0x13>, Invoke<0x14>,
}

Definition at line 1209 of file newgrf.cpp.


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