OpenTTD Source: src/newgrf/newgrf_act0_canals.cpp File Reference

OpenTTD Source 15.3

Functions
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

  first | Local ID of the first water feature.
  last | Local ID of the last water feature.
  prop | The property to change.
  buf | The 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().