OpenTTD Source 20250613-master-ga1786fa1f4
newgrf_badge_type.h File Reference

Types related to NewGRF badges. More...

Go to the source code of this file.

Data Structures

struct  std::hash< BadgeClassID >
 

Typedefs

using BadgeID = StrongType::Typedef< uint16_t, struct BadgeIDTag, StrongType::Compare >
 
using BadgeClassID = StrongType::Typedef< uint16_t, struct BadgeClassIDTag, StrongType::Compare >
 
using BadgeFlags = EnumBitSet< BadgeFlag, uint8_t >
 
using BadgeFilterChoices = std::unordered_map< BadgeClassID, BadgeID >
 

Enumerations

enum class  BadgeFlag : uint8_t {
  Copy = 0 , NameListStop = 1 , NameListFirstOnly = 2 , UseCompanyColour = 3 ,
  HasText
}
 

Detailed Description

Types related to NewGRF badges.

Definition in file newgrf_badge_type.h.

Typedef Documentation

◆ BadgeClassID

using BadgeClassID = StrongType::Typedef<uint16_t, struct BadgeClassIDTag, StrongType::Compare>

Definition at line 17 of file newgrf_badge_type.h.

◆ BadgeFilterChoices

using BadgeFilterChoices = std::unordered_map<BadgeClassID, BadgeID>

Definition at line 36 of file newgrf_badge_type.h.

◆ BadgeFlags

using BadgeFlags = EnumBitSet<BadgeFlag, uint8_t>

Definition at line 34 of file newgrf_badge_type.h.

◆ BadgeID

using BadgeID = StrongType::Typedef<uint16_t, struct BadgeIDTag, StrongType::Compare>

Definition at line 16 of file newgrf_badge_type.h.

Enumeration Type Documentation

◆ BadgeFlag

enum class BadgeFlag : uint8_t
strong
Enumerator
Copy 

Copy badge to related things.

NameListStop 

Stop adding names to the name list after this badge.

NameListFirstOnly 

Don't add this name to the name list if not first.

UseCompanyColour 

Apply company colour palette to this badge.

HasText 

Internal flag set if the badge has text.

Definition at line 26 of file newgrf_badge_type.h.