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

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.
 

Detailed Description

NewGRF Action 0x00 handler for houses.

Definition in file newgrf_act0_houses.cpp.

Function Documentation

◆ IgnoreTownHouseProperty()

static ChangeInfoResult IgnoreTownHouseProperty ( int  prop,
ByteReader buf 
)
static

Ignore a house property.

Parameters
propProperty to read.
bufProperty value.
Returns
ChangeInfoResult.

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

◆ TownHouseChangeInfo()