OpenTTD Source 20250709-master-g7db135099a
BadgeClassConfig Class Reference

Global state for badge class configuration. More...

Data Fields

std::array< std::vector< BadgeClassConfigItem >, GrfSpecFeature::GSF_END > features = {}
 

Static Public Attributes

static const BadgeClassConfigItem EMPTY_CONFIG_ITEM {}
 
static constexpr GrfSpecFeatures CONFIGURABLE_FEATURES
 
static const std::array< std::string_view, GrfSpecFeature::GSF_END > sections
 

Detailed Description

Global state for badge class configuration.

Definition at line 23 of file newgrf_badge_config.cpp.

Field Documentation

◆ CONFIGURABLE_FEATURES

constexpr GrfSpecFeatures BadgeClassConfig::CONFIGURABLE_FEATURES
staticconstexpr
Initial value:
= {
GSF_TRAINS, GSF_ROADVEHICLES, GSF_SHIPS, GSF_AIRCRAFT, GSF_STATIONS, GSF_HOUSES, GSF_OBJECTS, GSF_ROADSTOPS,
}

Definition at line 29 of file newgrf_badge_config.cpp.

◆ EMPTY_CONFIG_ITEM

const BadgeClassConfigItem BadgeClassConfig::EMPTY_CONFIG_ITEM {}
inlinestatic

Definition at line 25 of file newgrf_badge_config.cpp.

◆ features

std::array<std::vector<BadgeClassConfigItem>, GrfSpecFeature::GSF_END> BadgeClassConfig::features = {}

Definition at line 27 of file newgrf_badge_config.cpp.

◆ sections

const std::array<std::string_view, GrfSpecFeature::GSF_END> BadgeClassConfig::sections
inlinestatic
Initial value:
= {
"badges_trains",
"badges_roadvehicles",
"badges_ships",
"badges_aircraft",
"badges_stations",
{},
{},
"badges_houses",
{},
{},
{},
{},
{},
{},
{},
"badges_objects",
{},
{},
{},
{},
"badges_roadstops",
{},
}

Definition at line 33 of file newgrf_badge_config.cpp.


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