|
OpenTTD Source 20260109-master-g241b5fcdfe
|
NewGRF Action 0x00 handler for bridges. More...
#include "../stdafx.h"#include "../debug.h"#include "../bridge.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 | BridgeChangeInfo (uint first, uint last, int prop, ByteReader &buf) |
| Define properties for bridges. | |
NewGRF Action 0x00 handler for bridges.
Definition in file newgrf_act0_bridges.cpp.
|
static |
Define properties for bridges.
| first | Local ID of the first bridge. |
| last | Local ID of the last bridge. |
| prop | The property to change. |
| buf | The property value. |
Definition at line 27 of file newgrf_act0_bridges.cpp.
References _bridge, AddStringForMapping(), BridgeSpec::avail_year, AXIS_X, AXIS_Y, CIR_INVALID_ID, CIR_SUCCESS, CIR_UNKNOWN, Clamp(), BridgeSpec::ctrl_flags, BridgeSpec::CustomPillarFlags, BridgeSpec::flags, BridgeSpec::InvalidPillarFlags, MapSpriteMappingRecolour(), BridgeSpec::material, MAX_BRIDGES, BridgeSpec::max_length, TimerGameConst< struct Calendar >::MAX_YEAR, BridgeSpec::min_length, TimerGameConst< struct Calendar >::MIN_YEAR, TimerGameConst< struct Calendar >::ORIGINAL_BASE_YEAR, BridgeSpec::pillar_flags, BridgeSpec::price, ByteReader::ReadByte(), ByteReader::ReadDWord(), ByteReader::ReadExtendedByte(), ByteReader::ReadWord(), BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Reset(), BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Set(), BridgeSpec::speed, BridgeSpec::sprite_table, SPRITES_PER_BRIDGE_PIECE, BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test(), and BridgeSpec::transport_name.