OpenTTD Source 20260206-master-g4d4e37dbf1
Badge Class Reference

Public Member Functions

 Badge (std::string_view label, BadgeID index, BadgeClassID class_index)

Data Fields

std::string label
 Label of badge.
BadgeID index
 Index assigned to badge.
BadgeClassID class_index
 Index of class this badge belongs to.
BadgeFlags flags = {}
 Display flags.
StringID name = 0
 Short name.
GrfSpecFeatures features {}
 Bitmask of which features use this badge.
VariableGRFFileProps< GrfSpecFeaturegrf_prop
 Sprite information.

Detailed Description

Definition at line 20 of file newgrf_badge.h.

Constructor & Destructor Documentation

◆ Badge()

Badge::Badge ( std::string_view label,
BadgeID index,
BadgeClassID class_index )
inline

Definition at line 30 of file newgrf_badge.h.

Field Documentation

◆ class_index

BadgeClassID Badge::class_index

◆ features

GrfSpecFeatures Badge::features {}

◆ flags

BadgeFlags Badge::flags = {}

◆ grf_prop

Sprite information.

Definition at line 28 of file newgrf_badge.h.

◆ index

BadgeID Badge::index

Index assigned to badge.

Definition at line 23 of file newgrf_badge.h.

Referenced by FinaliseBadges(), and NWidgetBadgeFilter::GetDropDownList().

◆ label

◆ name


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