OpenTTD Source: Badges Class Reference

OpenTTD Source 15.3

Data Fields
Badges Class Reference

Global state for badge definitions. More...

## Data Fields
std::vector< BadgeID > | classes
| List of known badge classes.
std::vector< Badge > | specs
| List of known badges.

## Detailed Description

Global state for badge definitions.

Definition at line 27 of file newgrf_badge.cpp.

## Field Documentation

## ◆ classes

std::vector<BadgeID> Badges::classes

List of known badge classes.

Definition at line 29 of file newgrf_badge.cpp.

Referenced by GetClassBadge(), GetClassBadges(), GetOrCreateBadgeClass(), and UsedBadgeClasses::UsedBadgeClasses().

## ◆ specs

std::vector<Badge> Badges::specs

List of known badges.

Definition at line 30 of file newgrf_badge.cpp.

Referenced by GetBadge(), GetBadgeByLabel(), GetBadges(), and GetOrCreateBadge().

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

- src/newgrf_badge.cpp