OpenTTD Source 20250312-master-gcdcc6b491d
|
Data related to the handling of grf files. More...
#include <newgrf_commons.h>
Public Member Functions | |
constexpr | GRFFileProps (uint16_t subst_id=0) |
Set all default data constructor for the props. | |
![]() | |
const struct SpriteGroup * | GetSpriteGroup (size_t index=0) const |
Get the SpriteGroup at the specified index. | |
void | SetSpriteGroup (size_t index, const struct SpriteGroup *spritegroup) |
Set the SpriteGroup at the specified index. | |
![]() | |
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 | subst_id |
uint16_t | override |
id of the entity been replaced by | |
![]() | |
std::array< const struct SpriteGroup *, Tcount > | spritegroups |
pointers to the different sprite groups of the entity | |
![]() | |
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 GRFFile * | grffile = nullptr |
grf file that introduced this entity | |
Data related to the handling of grf files.
Definition at line 341 of file newgrf_commons.h.
|
inlineconstexpr |
Set all default data constructor for the props.
Definition at line 343 of file newgrf_commons.h.
uint16_t GRFFileProps::override |
id of the entity been replaced by
Definition at line 346 of file newgrf_commons.h.
Referenced by AirportSpec::Get(), GetAirportTileIDAtOffset(), GetIndustryIDAtOffset(), GetTranslatedAirportTileID(), GetTranslatedHouseID(), GetTranslatedIndustryTileID(), HouseOverrideManager::SetEntitySpec(), IndustryOverrideManager::SetEntitySpec(), and TryBuildTownHouse().
uint16_t GRFFileProps::subst_id |
Definition at line 345 of file newgrf_commons.h.