|
OpenTTD Source 20251117-master-g7398d2e290
|
NewGRF handling of airports. More...
#include "stdafx.h"#include "debug.h"#include "timer/timer_game_calendar.h"#include "newgrf_badge.h"#include "newgrf_spritegroup.h"#include "newgrf_text.h"#include "station_base.h"#include "town.h"#include "table/strings.h"#include "newgrf_class_func.h"#include "safeguards.h"Go to the source code of this file.
Functions | |
| void | BindAirportSpecs () |
| Tie all airportspecs to their class. | |
| SpriteID | GetCustomAirportSprite (const AirportSpec *as, uint8_t layout) |
| uint16_t | GetAirportCallback (CallbackID callback, uint32_t param1, uint32_t param2, Station *st, TileIndex tile, std::span< int32_t > regs100) |
| StringID | GetAirportTextCallback (const AirportSpec *as, uint8_t layout, uint16_t callback) |
| Get a custom text for the airport. | |
Variables | |
| AirportOverrideManager | _airport_mngr (NEW_AIRPORT_OFFSET, NUM_AIRPORTS, AT_INVALID) |
NewGRF handling of airports.
Definition in file newgrf_airport.cpp.
| void BindAirportSpecs | ( | ) |
Tie all airportspecs to their class.
Definition at line 128 of file newgrf_airport.cpp.
References NewGRFClass< Tspec, Tindex, Tmax >::Assign(), AirportSpec::enabled, AirportSpec::GetWithoutOverride(), and NUM_AIRPORTS.
Referenced by AfterLoadGRFs().
| uint16_t GetAirportCallback | ( | CallbackID | callback, |
| uint32_t | param1, | ||
| uint32_t | param2, | ||
| Station * | st, | ||
| TileIndex | tile, | ||
| std::span< int32_t > | regs100 | ||
| ) |
Definition at line 267 of file newgrf_airport.cpp.
| StringID GetAirportTextCallback | ( | const AirportSpec * | as, |
| uint8_t | layout, | ||
| uint16_t | callback | ||
| ) |
Get a custom text for the airport.
| as | The airport type's specification. |
| layout | The layout index. |
| callback | The callback to call. |
Definition at line 280 of file newgrf_airport.cpp.
References CALLBACK_FAILED, ErrorUnknownCallbackResult(), GetGRFStringID(), AirportSpec::grf_prop, GRFFilePropsBase::grfid, GRFSTR_MISC_GRF_TEXT, and INVALID_TILE.
Referenced by BuildAirportWindow::DrawWidget(), BuildAirportWindow::GetWidgetString(), and BuildAirportWindow::UpdateWidgetSize().
| SpriteID GetCustomAirportSprite | ( | const AirportSpec * | as, |
| uint8_t | layout | ||
| ) |
Definition at line 258 of file newgrf_airport.cpp.