OpenTTD Source 20250331-master-g3c15e0c889
|
NewGRF Action 0x00 handler for objects. More...
#include "../stdafx.h"
#include "../debug.h"
#include "../newgrf_object.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 | IgnoreObjectProperty (uint prop, ByteReader &buf) |
Ignore properties for objects. | |
static ChangeInfoResult | ObjectChangeInfo (uint first, uint last, int prop, ByteReader &buf) |
Define properties for objects. | |
NewGRF Action 0x00 handler for objects.
Definition in file newgrf_act0_objects.cpp.
|
static |
Ignore properties for objects.
prop | The property to ignore. |
buf | The property value. |
Definition at line 25 of file newgrf_act0_objects.cpp.
References CIR_SUCCESS, CIR_UNKNOWN, ByteReader::ReadByte(), ByteReader::ReadDWord(), ByteReader::ReadWord(), and SkipBadgeList().
Referenced by ObjectChangeInfo().
|
static |
Define properties for objects.
first | Local ID of the first object. |
last | Local ID of the last object. |
prop | The property to change. |
buf | The property value. |
Definition at line 76 of file newgrf_act0_objects.cpp.
References _loaded_newgrf_features, AddStringForMapping(), NewGRFClass< Tspec, Tindex, Tmax >::Allocate(), CIR_INVALID_ID, CIR_SUCCESS, CIR_UNKNOWN, GB(), NewGRFClass< Tspec, Tindex, Tmax >::Get(), GrfProcessingState::grffile, GRFLoadedFeatures::has_2CC, IgnoreObjectProperty(), NewGRFClass< Tspec, Tindex, Tmax >::name, NUM_OBJECTS_PER_GRF, OBJECT_SIZE_1X1, ReadBadgeList(), ByteReader::ReadByte(), ByteReader::ReadDWord(), ByteReader::ReadWord(), and Uses2CC.