|
OpenTTD Source 20251116-master-g21329071df
|
Command definitions related to subsidies. More...
#include "command_type.h"#include "cargo_type.h"#include "source_type.h"#include "misc/endian_buffer.hpp"Go to the source code of this file.
Functions | |
| CommandCost | CmdCreateSubsidy (DoCommandFlags flags, CargoType cargo_type, Source src, Source dst) |
| Create a new subsidy. | |
| template<typename Tcont , typename Titer > | |
| EndianBufferWriter< Tcont, Titer > & | operator<< (EndianBufferWriter< Tcont, Titer > &buffer, const Source &source) |
| EndianBufferReader & | operator>> (EndianBufferReader &buffer, Source &source) |
Command definitions related to subsidies.
Definition in file subsidy_cmd.h.
| CommandCost CmdCreateSubsidy | ( | DoCommandFlags | flags, |
| CargoType | cargo_type, | ||
| Source | src, | ||
| Source | dst | ||
| ) |
Create a new subsidy.
| flags | type of operation |
| cargo_type | CargoType of subsidy. |
| src | Source. |
| dst | Destination. |
Definition at line 196 of file subsidy.cpp.
References _current_company, Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem<&_subsidy_pool >::CanAllocateItem(), CMD_ERROR, CreateSubsidy(), Execute, CargoSpec::Get(), Industry, Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem<&_industry_pool >::IsValidID(), Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem<&_town_pool >::IsValidID(), NUM_CARGO, OWNER_DEITY, BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test(), Town, and Source::type.
|
inline |
Definition at line 18 of file subsidy_cmd.h.
|
inline |
Definition at line 29 of file subsidy_cmd.h.