|
OpenTTD Source 20251104-master-g3befbdd52f
|
Public Member Functions | |
| BadgeTextFilter (struct StringFilter &filter, GrfSpecFeature feature) | |
| Construct a badge text filter. | |
| bool | Filter (std::span< const BadgeID > badges) const |
| Test if any of the given badges matches the filtered badge list. | |
Private Attributes | |
| FlatSet< BadgeID > | badges {} |
Definition at line 71 of file newgrf_badge.h.
| BadgeTextFilter::BadgeTextFilter | ( | struct StringFilter & | filter, |
| GrfSpecFeature | feature | ||
| ) |
Construct a badge text filter.
| filter | string filter. |
| feature | feature being used. |
Definition at line 317 of file newgrf_badge.cpp.
References GetBadges(), StringFilter::GetState(), GetString(), StringFilter::IsEmpty(), and StringFilter::ResetState().
| bool BadgeTextFilter::Filter | ( | std::span< const BadgeID > | badges | ) | const |
Test if any of the given badges matches the filtered badge list.
| badges | List of badges. |
Definition at line 340 of file newgrf_badge.cpp.
Definition at line 77 of file newgrf_badge.h.