OpenTTD Source 20250729-master-g8675d7b498
SortableSpriteStruct Struct Reference
Inheritance diagram for SortableSpriteStruct:
SpriteBounds

Public Member Functions

constexpr SortableSpriteStruct (uint8_t image_offset, const SpriteBounds &bounds)
 
constexpr SortableSpriteStruct (uint8_t image_offset, int8_t x_offset, int8_t y_offset, uint8_t x_size, uint8_t y_size, uint8_t z_size, int8_t z_offset)
 
- Public Member Functions inherited from SpriteBounds
constexpr SpriteBounds (const Coord3D< int8_t > &origin, const Coord3D< uint8_t > &extent, const Coord3D< int8_t > &offset)
 

Data Fields

uint8_t image_offset
 
- Data Fields inherited from SpriteBounds
Coord3D< int8_t > origin
 Position of northern corner within tile.
 
Coord3D< uint8_t > extent
 Size of bounding box.
 
Coord3D< int8_t > offset
 Relative position of sprite from bounding box.
 

Detailed Description

Definition at line 316 of file elrail_data.h.

Constructor & Destructor Documentation

◆ SortableSpriteStruct() [1/2]

constexpr SortableSpriteStruct::SortableSpriteStruct ( uint8_t  image_offset,
const SpriteBounds bounds 
)
inlineconstexpr

Definition at line 319 of file elrail_data.h.

◆ SortableSpriteStruct() [2/2]

constexpr SortableSpriteStruct::SortableSpriteStruct ( uint8_t  image_offset,
int8_t  x_offset,
int8_t  y_offset,
uint8_t  x_size,
uint8_t  y_size,
uint8_t  z_size,
int8_t  z_offset 
)
inlineconstexpr

Definition at line 320 of file elrail_data.h.

Field Documentation

◆ image_offset

uint8_t SortableSpriteStruct::image_offset

Definition at line 317 of file elrail_data.h.


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