OpenTTD Source 20250312-master-gcdcc6b491d
GRFFilePropsBase Struct Reference

Base data related to the handling of grf files. More...

#include <newgrf_commons.h>

Inheritance diagram for GRFFilePropsBase:
FixedGRFFileProps< 1 > FixedGRFFileProps< 2 > FixedGRFFileProps< Tcount > VariableGRFFileProps GRFFileProps

Public Member Functions

void SetGRFFile (const struct GRFFile *grffile)
 Set the NewGRF file, and its grfid, associated with grf props.
 
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
 

Detailed Description

Base data related to the handling of grf files.

Definition at line 292 of file newgrf_commons.h.

Member Function Documentation

◆ HasGrfFile()

◆ SetGRFFile()

void GRFFilePropsBase::SetGRFFile ( const struct GRFFile grffile)

Set the NewGRF file, and its grfid, associated with grf props.

Parameters
grffileGRFFile to set.

Definition at line 738 of file newgrf_commons.cpp.

References grffile, and grfid.

Referenced by GetNewEngine(), and SetEngineGRF().

Field Documentation

◆ grffile

◆ grfid

◆ local_id


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