OpenTTD Source: src/newgrf_badge_type.h File Reference

OpenTTD Source 15.3

Data Structures | Typedefs | Enumerations
newgrf_badge_type.h File Reference

Types related to NewGRF badges. More...

`#include "core/enum_type.hpp"`
`#include "core/strong_typedef_type.hpp"`

Go to the source code of this file.

## Data Structures
struct | std::hash< BadgeClassID >

## Typedefs
using | BadgeID = StrongType::Typedef< uint32_t, struct BadgeIDTag, StrongType::Compare >
using | BadgeClassID = StrongType::Typedef< uint32_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 , NameListSkip = 4 , HasText }

## Detailed Description

Types related to NewGRF badges.

Definition in file newgrf_badge_type.h.

## Typedef Documentation

## ◆ BadgeClassID

using BadgeClassID = StrongType::Typedef<uint32_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 37 of file newgrf_badge_type.h.

## ◆ BadgeFlags

using BadgeFlags = EnumBitSet<BadgeFlag, uint8_t>

Definition at line 35 of file newgrf_badge_type.h.

## ◆ BadgeID

using BadgeID = StrongType::Typedef<uint32_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.
NameListSkip | Don't show name in name list at all.
HasText | Internal flag set if the badge has text.

Definition at line 26 of file newgrf_badge_type.h.