OpenTTD Source 20260218-master-g2123fca5ea
DrawTileSpriteSpan Struct Reference

Ground palette sprite of a tile, together with its sprite layout. More...

#include <sprite.h>

Inheritance diagram for DrawTileSpriteSpan:
DrawTileSprites

Public Member Functions

 DrawTileSpriteSpan (PalSpriteID ground, std::span< const DrawTileSeqStruct > seq)
 DrawTileSpriteSpan (PalSpriteID ground)
std::span< const DrawTileSeqStructGetSequence () const override
 The child sprites to draw.
Public Member Functions inherited from DrawTileSprites
 DrawTileSprites (PalSpriteID ground)

Data Fields

std::span< const DrawTileSeqStructseq
 Child sprites,.
Data Fields inherited from DrawTileSprites
PalSpriteID ground {}
 Palette and sprite for the ground.

Detailed Description

Ground palette sprite of a tile, together with its sprite layout.

This struct is used for static sprite layouts in the code. For allocated ones from NewGRF see NewGRFSpriteLayout.

Definition at line 72 of file sprite.h.

Constructor & Destructor Documentation

◆ DrawTileSpriteSpan() [1/2]

DrawTileSpriteSpan::DrawTileSpriteSpan ( PalSpriteID ground,
std::span< const DrawTileSeqStruct > seq )
inline

Definition at line 75 of file sprite.h.

◆ DrawTileSpriteSpan() [2/2]

DrawTileSpriteSpan::DrawTileSpriteSpan ( PalSpriteID ground)
inline

Definition at line 76 of file sprite.h.

Member Function Documentation

◆ GetSequence()

std::span< const DrawTileSeqStruct > DrawTileSpriteSpan::GetSequence ( ) const
inlineoverridevirtual

The child sprites to draw.

Returns
The span of child sprites.

Implements DrawTileSprites.

Definition at line 79 of file sprite.h.

Referenced by StationChangeInfo().

Field Documentation

◆ seq

std::span<const DrawTileSeqStruct> DrawTileSpriteSpan::seq

Child sprites,.

Definition at line 73 of file sprite.h.


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