OpenTTD Source: src/subsidy_type.h File Reference

OpenTTD Source 15.3

Typedefs | Enumerations
subsidy_type.h File Reference

basic types related to subsidies More...

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

Go to the source code of this file.

## Typedefs
using | PartsOfSubsidy = EnumBitSet< PartOfSubsidy, uint8_t >
using | SubsidyID = PoolID< uint16_t, struct SubsidyIDTag, 256, 0xFFFF >
| ID of a subsidy.

## Enumerations
enum class | PartOfSubsidy : uint8_t { Source , Destination }
| What part of a subsidy is something? More...

## Detailed Description

basic types related to subsidies

Definition in file subsidy_type.h.

## Typedef Documentation

## ◆ PartsOfSubsidy

using PartsOfSubsidy = EnumBitSet<PartOfSubsidy, uint8_t>

Definition at line 22 of file subsidy_type.h.

## ◆ SubsidyID

using SubsidyID = PoolID<uint16_t, struct SubsidyIDTag, 256, 0xFFFF>

ID of a subsidy.

Definition at line 24 of file subsidy_type.h.

## Enumeration Type Documentation

## ◆ PartOfSubsidy

enum class PartOfSubsidy : uint8_t
| strong

What part of a subsidy is something?

Enumerator
Source | town/industry is source of subsidised path
Destination | town/industry is destination of subsidised path

Definition at line 17 of file subsidy_type.h.