OpenTTD Source 20260903-master-ged04d336ed
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 bool ValidateAirportLayout (const AirportTileLayout &layout)
 Validate the airport layout; e.g.
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()

◆ AirportTilesChangeInfo()

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

Definition at line 221 of file newgrf_act0_airports.cpp.

◆ ValidateAirportLayout()

bool ValidateAirportLayout ( const AirportTileLayout & layout)
static

Validate the airport layout; e.g.

to prevent duplicate tiles.

Parameters
layoutThe layout to check.
Returns
True if the layout is deemed valid.

Definition at line 25 of file newgrf_act0_airports.cpp.

References AirportTileLayout::tiles.

Referenced by AirportChangeInfo().