|
OpenTTD Source 20260421-master-gc2fbc6fdeb
|
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 AddStringForMapping(), Airports, Clamp(), DIR_E, DIR_W, AirportSpec::enabled, GB(), AirportSpec::GetWithoutOverride(), INVALID_AIRPORTTILE, InvalidId, MAX_CATCHMENT, TimerGameConst< struct Calendar >::MAX_YEAR, NEW_AIRPORT_OFFSET, NUM_AIRPORTS_PER_GRF, ReadBadgeList(), ByteReader::ReadByte(), ByteReader::ReadDWord(), ByteReader::ReadWord(), Success, and Unknown.
Referenced by GrfChangeInfoHandler< TFeature >::Activation().
|
static |
Definition at line 176 of file newgrf_act0_airports.cpp.