OpenTTD Source 20260512-master-g20b387b91f
RailStationTileLayout< T > Class Template Reference

Data Structures

class  Iterator

Public Member Functions

 RailStationTileLayout (const StationSpec *spec, uint8_t platforms, uint8_t length)
Iterator begin () const
std::default_sentinel_t end () const

Private Attributes

std::span< const StationGfxlayout {}
 Predefined tile layout.
uint platforms
 Number of platforms.
uint length
 Length of platforms.

Detailed Description

template<StationType T>
class RailStationTileLayout< T >

Definition at line 17 of file station_layout_type.h.

Constructor & Destructor Documentation

◆ RailStationTileLayout()

template<StationType T>
RailStationTileLayout< T >::RailStationTileLayout ( const StationSpec * spec,
uint8_t platforms,
uint8_t length )
inline

Definition at line 23 of file station_layout_type.h.

Member Function Documentation

◆ begin()

template<StationType T>
Iterator RailStationTileLayout< T >::begin ( ) const
inline

Definition at line 67 of file station_layout_type.h.

◆ end()

template<StationType T>
std::default_sentinel_t RailStationTileLayout< T >::end ( ) const
inline

Definition at line 68 of file station_layout_type.h.

Field Documentation

◆ layout

template<StationType T>
std::span<const StationGfx> RailStationTileLayout< T >::layout {}
private

Predefined tile layout.

Definition at line 19 of file station_layout_type.h.

Referenced by CmdBuildAirport(), DrawTile_Station(), and GetStationBlockedPillars().

◆ length

template<StationType T>
uint RailStationTileLayout< T >::length
private

Length of platforms.

Definition at line 21 of file station_layout_type.h.

Referenced by CmdBuildRoadStop().

◆ platforms

template<StationType T>
uint RailStationTileLayout< T >::platforms
private

Number of platforms.

Definition at line 20 of file station_layout_type.h.


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