OpenTTD Source 20250331-master-g3c15e0c889
|
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 | grf_prop |
Sprite information. | |
Definition at line 20 of file newgrf_badge.h.
|
inline |
Definition at line 30 of file newgrf_badge.h.
BadgeClassID Badge::class_index |
Index of class this badge belongs to.
Definition at line 24 of file newgrf_badge.h.
Referenced by DrawBadgeColumn(), DrawBadgeNameList(), GetOrCreateBadge(), and UsedBadgeClasses::UsedBadgeClasses().
GrfSpecFeatures Badge::features {} |
Bitmask of which features use this badge.
Definition at line 27 of file newgrf_badge.h.
Referenced by AppendCopyableBadgeList(), ApplyBadgeFeaturesToClassBadges(), FinaliseBadges(), MarkBadgeSeen(), and UsedBadgeClasses::UsedBadgeClasses().
BadgeFlags Badge::flags = {} |
Display flags.
Definition at line 25 of file newgrf_badge.h.
Referenced by AppendCopyableBadgeList(), DrawBadgeNameList(), and GetBadgeSprite().
VariableGRFFileProps Badge::grf_prop |
Sprite information.
Definition at line 28 of file newgrf_badge.h.
Referenced by BadgeResolverObject::BadgeResolverObject().
BadgeID Badge::index |
Index assigned to badge.
Definition at line 23 of file newgrf_badge.h.
Referenced by FinaliseBadges(), and BadgeResolverObject::GetDebugID().
std::string Badge::label |
Label of badge.
Definition at line 22 of file newgrf_badge.h.
Referenced by NewGRFInspectWindow::DrawMainPanelWidget(), GetBadgeByLabel(), GetOrCreateBadge(), GUIBadgeClasses::GUIBadgeClasses(), and UsedBadgeClasses::UsedBadgeClasses().
StringID Badge::name = 0 |
Short name.
Definition at line 26 of file newgrf_badge.h.
Referenced by DrawBadgeNameList(), and NewGRFInspectWindow::DrawMainPanelWidget().