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

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

#include "../stdafx.h"
#include "../debug.h"
#include "newgrf_bytereader.h"
#include "newgrf_internal.h"
#include "../safeguards.h"

Go to the source code of this file.

Functions

static ChangeInfoResult CanalChangeInfo (uint first, uint last, int prop, ByteReader &buf)
 Define properties for water features.
 

Detailed Description

NewGRF Action 0x00 handler for canals.

Definition in file newgrf_act0_canals.cpp.

Function Documentation

◆ CanalChangeInfo()

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

Define properties for water features.

Parameters
firstLocal ID of the first water feature.
lastLocal ID of the last water feature.
propThe property to change.
bufThe property value.
Returns
ChangeInfoResult.

Definition at line 25 of file newgrf_act0_canals.cpp.

References CanalProperties::callback_mask, GRFFile::canal_local_properties, CIR_INVALID_ID, CIR_SUCCESS, CIR_UNKNOWN, CanalProperties::flags, GrfProcessingState::grffile, and ByteReader::ReadByte().