OpenTTD Source 20250331-master-g3c15e0c889
|
NewGRF Action 0x00 handler for houses. More...
#include "../stdafx.h"
#include "../debug.h"
#include "../town.h"
#include "../newgrf_cargo.h"
#include "../newgrf_house.h"
#include "newgrf_bytereader.h"
#include "newgrf_internal.h"
#include "newgrf_stringmapping.h"
#include "table/strings.h"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
static ChangeInfoResult | IgnoreTownHouseProperty (int prop, ByteReader &buf) |
Ignore a house property. | |
static ChangeInfoResult | TownHouseChangeInfo (uint first, uint last, int prop, ByteReader &buf) |
Define properties for houses. | |
NewGRF Action 0x00 handler for houses.
Definition in file newgrf_act0_houses.cpp.
|
static |
Ignore a house property.
prop | Property to read. |
buf | Property value. |
Definition at line 29 of file newgrf_act0_houses.cpp.
References CIR_SUCCESS, CIR_UNKNOWN, ByteReader::ReadByte(), ByteReader::ReadDWord(), and ByteReader::ReadWord().
Referenced by TownHouseChangeInfo().
|
static |
Define properties for houses.
first | Local ID of the first house. |
last | Local ID of the last house. |
prop | The property to change. |
buf | The property value. |
Definition at line 96 of file newgrf_act0_houses.cpp.
References _settings_game, abs(), OverrideManagerBase::Add(), AddStringForMapping(), CIR_DISABLED, CIR_INVALID_ID, CIR_SUCCESS, CIR_UNKNOWN, Clamp(), CT_INVALID, DisableGrf(), HouseSpec::enabled, GameSettings::game_creation, GB(), HouseSpec::Get(), GetCargoTranslation(), GrfProcessingState::grffile, HOUSE_ORIGINAL_NUM_ACCEPTS, IgnoreTownHouseProperty(), IsValidCargoType(), GameCreationSettings::landscape, lengthof, TimerGameConst< struct Calendar >::MAX_YEAR, NEW_HOUSE_OFFSET, NUM_HOUSES_PER_GRF, TimerGameConst< struct Calendar >::ORIGINAL_BASE_YEAR, GRFError::param_value, ReadBadgeList(), ByteReader::ReadByte(), ByteReader::ReadDWord(), ByteReader::ReadWord(), SB(), and SetBit().