OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
10 #ifndef SUBSIDY_FUNC_H
11 #define SUBSIDY_FUNC_H
void RebuildSubsidisedSourceAndDestinationCache()
Perform a full rebuild of the subsidies cache.
Owner
Enum for all companies/owners.
std::pair< NewsReferenceType, NewsReferenceType > SetupSubsidyDecodeParam(const Subsidy *s, SubsidyDecodeParamType mode, uint parameter_offset)
Setup the string parameters for printing the subsidy at the screen, and compute the news reference fo...
SourceType
Types of cargo source and destination.
Struct about subsidies, offered and awarded.
uint16_t SourceID
Contains either industry ID, town ID or company ID (or INVALID_SOURCE)
void DeleteSubsidyWith(SourceType type, SourceID index)
Delete the subsidies associated with a given cargo source type and id.
bool CheckSubsidised(CargoID cargo_type, CompanyID company, SourceType src_type, SourceID src, const Station *st)
Tests whether given delivery is subsidised and possibly awards the subsidy to delivering company.
uint8_t CargoID
Cargo slots to indicate a cargo type within a game.
SubsidyDecodeParamType
Types of subsidy news messages, which determine how the date is printed and whether to use singular o...