OpenTTD Source 20250331-master-g3c15e0c889
|
NewGRF Action 0x00 handler for cargo. More...
#include "../stdafx.h"
#include "../debug.h"
#include "../newgrf_cargo.h"
#include "newgrf_bytereader.h"
#include "newgrf_internal.h"
#include "newgrf_stringmapping.h"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
static ChangeInfoResult | CargoReserveInfo (uint first, uint last, int prop, ByteReader &buf) |
Define properties for cargoes. | |
NewGRF Action 0x00 handler for cargo.
Definition in file newgrf_act0_cargo.cpp.
|
static |
Define properties for cargoes.
first | ID of the first cargo. |
last | ID of the last cargo. |
prop | The property to change. |
buf | The property value. |
Definition at line 27 of file newgrf_act0_cargo.cpp.
References _cargo_mask, CargoSpec::abbrev, AddStringForMapping(), CargoSpec::bitnum, BuildCargoLabelMap(), CargoSpec::callback_mask, CIR_INVALID_ID, CIR_SUCCESS, CIR_UNKNOWN, CargoSpec::classes, ClrBit(), CargoSpec::Get(), CargoSpec::grffile, GrfProcessingState::grffile, CargoSpec::initial_payment, CargoSpec::is_freight, CargoSpec::IsValid(), CargoSpec::label, CargoSpec::multiplier, CargoSpec::name, CargoSpec::name_single, NUM_CARGO, CargoSpec::quantifier, ByteReader::ReadByte(), ByteReader::ReadDWord(), ByteReader::ReadWord(), SetBit(), CargoSpec::sprite, TAE_FOOD, TAE_GOODS, TAE_MAIL, TAE_NONE, TAE_PASSENGERS, TAE_WATER, CargoSpec::town_acceptance_effect, CargoSpec::town_production_effect, CargoSpec::town_production_multiplier, TPE_MAIL, TPE_NONE, TPE_PASSENGERS, CargoSpec::units_volume, and CargoSpec::weight.