OpenTTD Source: LoggedChangeGRFMoved Struct Reference

OpenTTD Source 15.0-RC2

Public Member Functions | Data Fields
LoggedChangeGRFMoved Struct Reference
Inheritance diagram for LoggedChangeGRFMoved:

## Public Member Functions
| LoggedChangeGRFMoved (uint32_t grfid, int32_t offset)
void | FormatTo (std::back_insert_iterator< std::string > &output_iterator, GrfIDMapping &grf_names, GamelogActionType action_type) override
Public Member Functions inherited from LoggedChange
| LoggedChange (GamelogChangeType type=GLCT_NONE)

## Data Fields
uint32_t | grfid = 0
| ID of moved GRF.
int32_t | offset = 0
| offset, positive = move down
Data Fields inherited from LoggedChange
GamelogChangeType | ct {}

## Detailed Description

Definition at line 104 of file gamelog_internal.h.

## Constructor & Destructor Documentation

## ◆ LoggedChangeGRFMoved() [1/2]

LoggedChangeGRFMoved::LoggedChangeGRFMoved | ( |  | ) |
| inline

Definition at line 105 of file gamelog_internal.h.

## ◆ LoggedChangeGRFMoved() [2/2]

LoggedChangeGRFMoved::LoggedChangeGRFMoved | ( | uint32_t | grfid,
|  | int32_t | offset
| ) |  |
| inline

Definition at line 106 of file gamelog_internal.h.

## Member Function Documentation

## ◆ FormatTo()

void LoggedChangeGRFMoved::FormatTo | ( | std::back_insert_iterator< std::string > & | output_iterator,
|  | GrfIDMapping & | grf_names,
|  | GamelogActionType | action_type
| ) |  |
| overridevirtual

Implements LoggedChange.

Definition at line 282 of file gamelog.cpp.

## Field Documentation

## ◆ grfid

uint32_t LoggedChangeGRFMoved::grfid = 0

ID of moved GRF.

Definition at line 110 of file gamelog_internal.h.

## ◆ offset

int32_t LoggedChangeGRFMoved::offset = 0

offset, positive = move down

Definition at line 111 of file gamelog_internal.h.

The documentation for this struct was generated from the following files:

- src/gamelog_internal.h
- src/gamelog.cpp