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

NewGRF Action 0x00 handler for roadstops. More...

#include "../stdafx.h"
#include "../debug.h"
#include "../newgrf_engine.h"
#include "../newgrf_roadstop.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 IgnoreRoadStopProperty (uint prop, ByteReader &buf)
 Ignore properties for roadstops.
 
static ChangeInfoResult RoadStopChangeInfo (uint first, uint last, int prop, ByteReader &buf)
 

Detailed Description

NewGRF Action 0x00 handler for roadstops.

Definition in file newgrf_act0_roadstops.cpp.

Function Documentation

◆ IgnoreRoadStopProperty()

static ChangeInfoResult IgnoreRoadStopProperty ( uint  prop,
ByteReader buf 
)
static

Ignore properties for roadstops.

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

Definition at line 26 of file newgrf_act0_roadstops.cpp.

References CIR_SUCCESS, CIR_UNKNOWN, ByteReader::ReadByte(), ByteReader::ReadDWord(), ByteReader::ReadWord(), and SkipBadgeList().

◆ RoadStopChangeInfo()

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

Definition at line 64 of file newgrf_act0_roadstops.cpp.