OpenTTD Source 20260421-master-gc2fbc6fdeb
BadgeClassConfig Class Reference

Global state for badge class configuration. More...

Data Fields

EnumClassIndexContainer< std::array< std::vector< BadgeClassConfigItem >, to_underlying(GrfSpecFeature::End)>, GrfSpecFeaturefeatures = {}

Static Public Attributes

static const BadgeClassConfigItem EMPTY_CONFIG_ITEM {}
static constexpr GrfSpecFeatures CONFIGURABLE_FEATURES
static const EnumClassIndexContainer< std::array< std::string_view, to_underlying(GrfSpecFeature::End)>, GrfSpecFeaturesections

Detailed Description

Global state for badge class configuration.

Definition at line 23 of file newgrf_badge_config.cpp.

Field Documentation

◆ CONFIGURABLE_FEATURES

GrfSpecFeatures BadgeClassConfig::CONFIGURABLE_FEATURES
staticconstexpr
Initial value:
= {
}
@ RoadStops
Road stops feature.
Definition newgrf.h:93
@ Trains
Trains feature.
Definition newgrf.h:73
@ RoadVehicles
Road vehicles feature.
Definition newgrf.h:74
@ Ships
Ships feature.
Definition newgrf.h:75
@ Houses
Houses feature.
Definition newgrf.h:80
@ Stations
Stations feature.
Definition newgrf.h:77
@ Aircraft
Aircraft feature.
Definition newgrf.h:76
@ Objects
Objects feature.
Definition newgrf.h:88

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

EnumClassIndexContainer<std::array<std::vector<BadgeClassConfigItem>, to_underlying(GrfSpecFeature::End)>, GrfSpecFeature> BadgeClassConfig::features = {}

Definition at line 27 of file newgrf_badge_config.cpp.

◆ sections

const EnumClassIndexContainer<std::array<std::string_view, to_underlying(GrfSpecFeature::End)>, GrfSpecFeature> 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: