OpenTTD Source 20250220-master-gf89924a727
newgrf_badge_type.h File Reference

Types related to NewGRF badges. More...

Go to the source code of this file.

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 >
 

Enumerations

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

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.

◆ BadgeFlags

using BadgeFlags = EnumBitSet<BadgeFlag, uint8_t>

Definition at line 25 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.

Definition at line 19 of file newgrf_badge_type.h.