OpenTTD Source 20241224-master-gf74b0cf984
LoggedChangeSettingChanged Struct Reference
Inheritance diagram for LoggedChangeSettingChanged:
LoggedChange

Public Member Functions

 LoggedChangeSettingChanged (const std::string &name, int32_t oldval, int32_t newval)
 
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

std::string name
 name of the setting
 
int32_t oldval
 old value
 
int32_t newval
 new value
 
- Data Fields inherited from LoggedChange
GamelogChangeType ct
 

Detailed Description

Definition at line 113 of file gamelog_internal.h.

Constructor & Destructor Documentation

◆ LoggedChangeSettingChanged() [1/2]

LoggedChangeSettingChanged::LoggedChangeSettingChanged ( )
inline

Definition at line 114 of file gamelog_internal.h.

◆ LoggedChangeSettingChanged() [2/2]

LoggedChangeSettingChanged::LoggedChangeSettingChanged ( const std::string &  name,
int32_t  oldval,
int32_t  newval 
)
inline

Definition at line 115 of file gamelog_internal.h.

Member Function Documentation

◆ FormatTo()

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

Implements LoggedChange.

Definition at line 224 of file gamelog.cpp.

Field Documentation

◆ name

std::string LoggedChangeSettingChanged::name

name of the setting

Definition at line 119 of file gamelog_internal.h.

◆ newval

int32_t LoggedChangeSettingChanged::newval

new value

Definition at line 121 of file gamelog_internal.h.

◆ oldval

int32_t LoggedChangeSettingChanged::oldval

old value

Definition at line 120 of file gamelog_internal.h.


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