OpenTTD Source 20260206-master-g4d4e37dbf1
TileLayoutSpriteGroup Struct Reference

Action 2 sprite layout for houses, industry tiles, objects and airport tiles. More...

#include <newgrf_spritegroup.h>

Inheritance diagram for TileLayoutSpriteGroup:
SpecializedSpriteGroup< TileLayoutSpriteGroup > SpriteGroup

Public Member Functions

 TileLayoutSpriteGroup (SpriteGroupID index)
SpriteLayoutProcessor ProcessRegisters (const ResolverObject &object, uint8_t *stage) const
 Process registers and the construction stage into the sprite layout.
Public Member Functions inherited from SpecializedSpriteGroup< TileLayoutSpriteGroup >
 SpecializedSpriteGroup (SpriteGroupID index)

Data Fields

NewGRFSpriteLayout dts {}
Data Fields inherited from SpriteGroup
uint32_t nfo_line = 0

Protected Member Functions

ResolverResult Resolve (ResolverObject &) const override
 Resolves a callback or rerandomisation callback to a NewGRF.
Protected Member Functions inherited from SpriteGroup
 SpriteGroup (SpriteGroupID index)

Additional Inherited Members

Static Public Member Functions inherited from SpecializedSpriteGroup< TileLayoutSpriteGroup >
static TileLayoutSpriteGroupCreate (Targs &&... args)
 Creates a new T-object in the SpriteGroup pool.
Static Public Member Functions inherited from SpriteGroup
static ResolverResult Resolve (const SpriteGroup *group, ResolverObject &object, bool top_level=true)
 ResolverObject (re)entry point.

Detailed Description

Action 2 sprite layout for houses, industry tiles, objects and airport tiles.

Definition at line 262 of file newgrf_spritegroup.h.

Constructor & Destructor Documentation

◆ TileLayoutSpriteGroup()

TileLayoutSpriteGroup::TileLayoutSpriteGroup ( SpriteGroupID index)
inline

Definition at line 263 of file newgrf_spritegroup.h.

Member Function Documentation

◆ ProcessRegisters()

SpriteLayoutProcessor TileLayoutSpriteGroup::ProcessRegisters ( const ResolverObject & object,
uint8_t * stage ) const

Process registers and the construction stage into the sprite layout.

The passed construction stage might get reset to zero, if it gets incorporated into the layout during the preprocessing.

Parameters
objectResolverObject owning the temporary storage.
[in,out]stageConstruction stage (0-3), or nullptr if not applicable.
Returns
sprite layout to draw.

Definition at line 294 of file newgrf_spritegroup.cpp.

References GetConstructionStageOffset(), and SpriteLayoutProcessor::ProcessRegisters().

Referenced by DrawNewObjectTile(), DrawNewObjectTileInGUI(), and DrawRoadStopTile().

◆ Resolve()

ResolverResult TileLayoutSpriteGroup::Resolve ( ResolverObject & object) const
inlineoverrideprotectedvirtual

Resolves a callback or rerandomisation callback to a NewGRF.

Parameters
objectInformation needed to resolve the group.
Returns
The result of resolving this SpriteGroup.

Implements SpriteGroup.

Definition at line 270 of file newgrf_spritegroup.h.

Field Documentation

◆ dts

NewGRFSpriteLayout TileLayoutSpriteGroup::dts {}

Definition at line 265 of file newgrf_spritegroup.h.


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