OpenTTD Source 20241224-master-gee860a5c8e
LoggedChangeGRFMoved Struct Reference
Inheritance diagram for LoggedChangeGRFMoved:
LoggedChange

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
 ID of moved GRF.
 
int32_t offset
 offset, positive = move down
 
- Data Fields inherited from LoggedChange
GamelogChangeType ct
 

Detailed Description

Definition at line 103 of file gamelog_internal.h.

Constructor & Destructor Documentation

◆ LoggedChangeGRFMoved() [1/2]

LoggedChangeGRFMoved::LoggedChangeGRFMoved ( )
inline

Definition at line 104 of file gamelog_internal.h.

◆ LoggedChangeGRFMoved() [2/2]

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

Definition at line 105 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

ID of moved GRF.

Definition at line 109 of file gamelog_internal.h.

◆ offset

int32_t LoggedChangeGRFMoved::offset

offset, positive = move down

Definition at line 110 of file gamelog_internal.h.


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