OpenTTD Source 20241224-master-gf74b0cf984
GRFFilePropsBase< Tcnt > Struct Template Reference

Data related to the handling of grf files. More...

#include <newgrf_commons.h>

Public Member Functions

bool HasGrfFile () const
 Test if this entity was introduced by NewGRF.
 

Data Fields

uint16_t local_id = 0
 id defined by the grf file for this entity
 
uint32_t grfid = 0
 grfid that introduced this entity.
 
const struct GRFFilegrffile = nullptr
 grf file that introduced this entity
 
std::array< const struct SpriteGroup *, Tcnt > spritegroup {}
 pointers to the different sprites of the entity
 

Detailed Description

template<size_t Tcnt>
struct GRFFilePropsBase< Tcnt >

Data related to the handling of grf files.

Template Parameters
TcntNumber of spritegroups

Definition at line 310 of file newgrf_commons.h.

Member Function Documentation

◆ HasGrfFile()

Field Documentation

◆ grffile

◆ grfid

◆ local_id

◆ spritegroup


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