OpenTTD Source 20250331-master-g3c15e0c889
newgrf_act0_objects.cpp File Reference

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.
 

Detailed Description

NewGRF Action 0x00 handler for objects.

Definition in file newgrf_act0_objects.cpp.

Function Documentation

◆ IgnoreObjectProperty()

static ChangeInfoResult IgnoreObjectProperty ( uint  prop,
ByteReader buf 
)
static

Ignore properties for objects.

Parameters
propThe property to ignore.
bufThe property value.
Returns
ChangeInfoResult.

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().

◆ ObjectChangeInfo()

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