OpenTTD Source 20260208-master-g43af8e94d0
newgrf_act0_airports.cpp File Reference

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)

Detailed Description

NewGRF Action 0x00 handler for airports.

Definition in file newgrf_act0_airports.cpp.

Function Documentation

◆ AirportChangeInfo()

ChangeInfoResult AirportChangeInfo ( uint first,
uint last,
int prop,
ByteReader & buf )
static

Define properties for airports.

Parameters
firstLocal ID of the first airport.
lastLocal ID of the last airport.
propThe property to change.
bufThe property value.
Returns
ChangeInfoResult.

Definition at line 28 of file newgrf_act0_airports.cpp.

References AddStringForMapping(), CIR_INVALID_ID, CIR_SUCCESS, CIR_UNKNOWN, Clamp(), DIR_E, DIR_W, AirportSpec::enabled, GB(), AirportSpec::GetWithoutOverride(), INVALID_AIRPORTTILE, MAX_CATCHMENT, TimerGameConst< struct Calendar >::MAX_YEAR, NEW_AIRPORT_OFFSET, NUM_AIRPORTS_PER_GRF, ReadBadgeList(), ByteReader::ReadByte(), ByteReader::ReadDWord(), and ByteReader::ReadWord().

◆ AirportTilesChangeInfo()

ChangeInfoResult AirportTilesChangeInfo ( uint first,
uint last,
int prop,
ByteReader & buf )
static

Definition at line 176 of file newgrf_act0_airports.cpp.