OpenTTD Source 20250331-master-g3c15e0c889
|
NewGRF Action 0x00 handler for airports. More...
#include "../stdafx.h"
#include "../debug.h"
#include "../newgrf_airporttiles.h"
#include "../newgrf_airport.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 | AirportChangeInfo (uint first, uint last, int prop, ByteReader &buf) |
Define properties for airports. | |
static ChangeInfoResult | AirportTilesChangeInfo (uint first, uint last, int prop, ByteReader &buf) |
NewGRF Action 0x00 handler for airports.
Definition in file newgrf_act0_airports.cpp.
|
static |
Define properties for airports.
first | Local ID of the first airport. |
last | Local ID of the last airport. |
prop | The property to change. |
buf | The property value. |
Definition at line 28 of file newgrf_act0_airports.cpp.
References OverrideManagerBase::Add(), AddStringForMapping(), CIR_INVALID_ID, CIR_SUCCESS, CIR_UNKNOWN, Clamp(), DIR_E, DIR_W, AirportSpec::enabled, GB(), OverrideManagerBase::GetID(), AirportSpec::GetWithoutOverride(), GrfProcessingState::grffile, INVALID_AIRPORTTILE, MAX_CATCHMENT, TimerGameConst< struct Calendar >::MAX_YEAR, NEW_AIRPORT_OFFSET, NUM_AIRPORTS_PER_GRF, ReadBadgeList(), ByteReader::ReadByte(), ByteReader::ReadDWord(), and ByteReader::ReadWord().
|
static |
Definition at line 178 of file newgrf_act0_airports.cpp.