|
OpenTTD Source 20251117-master-g7398d2e290
|
Type for the source of cargo. More...
#include "company_type.h"#include "industry_type.h"#include "news_type.h"#include "strings_type.h"#include "town_type.h"Go to the source code of this file.
Data Structures | |
| struct | Source |
| A location from where cargo can come from (or go to). More... | |
Typedefs | |
| using | SourceID = uint16_t |
| Contains either industry ID, town ID or company ID (or Source::Invalid) | |
Enumerations | |
| enum class | SourceType : uint8_t { Industry = 0 , Town = 1 , Headquarters = 2 } |
| Types of cargo source and destination. More... | |
Type for the source of cargo.
Definition in file source_type.h.
| using SourceID = uint16_t |
Contains either industry ID, town ID or company ID (or Source::Invalid)
Definition at line 26 of file source_type.h.
|
strong |
Types of cargo source and destination.
| Enumerator | |
|---|---|
| Industry | Source/destination is an industry. |
| Town | Source/destination is a town. |
| Headquarters | Source/destination are company headquarters. |
Definition at line 20 of file source_type.h.