OpenTTD Source 20251019-master-g9f7f314f81
|
Information about why GRF had problems during initialisation. More...
#include <newgrf_config.h>
Public Member Functions | |
GRFError (StringID severity, uint32_t nfo_line, StringID message={}) | |
Data Fields | |
std::string | custom_message {} |
Custom message (if present) | |
std::string | data {} |
Additional data for message and custom_message. | |
StringID | message {} |
Default message. | |
StringID | severity {} |
Info / Warning / Error / Fatal. | |
uint32_t | nfo_line |
Line within NewGRF of error. | |
std::array< uint32_t, 2 > | param_value {} |
Values of GRF parameters to show for message and custom_message. | |
Information about why GRF had problems during initialisation.
Definition at line 109 of file newgrf_config.h.
Definition at line 110 of file newgrf_config.h.
std::string GRFError::custom_message {} |
Custom message (if present)
Definition at line 113 of file newgrf_config.h.
Referenced by ShowNewGRFError().
std::string GRFError::data {} |
Additional data for message and custom_message.
Definition at line 114 of file newgrf_config.h.
Referenced by DisableStaticNewGRFInfluencingNonStaticNewGRFs(), ShowNewGRFError(), and TranslateGRFStrings().
StringID GRFError::message {} |
uint32_t GRFError::nfo_line |
Line within NewGRF of error.
Definition at line 117 of file newgrf_config.h.
Referenced by DisableGrf().
std::array<uint32_t, 2> GRFError::param_value {} |
Values of GRF parameters to show for message and custom_message.
Definition at line 118 of file newgrf_config.h.
Referenced by IndustriesChangeInfo(), IndustrytilesChangeInfo(), ShowNewGRFError(), and TownHouseChangeInfo().
StringID GRFError::severity {} |
Info / Warning / Error / Fatal.
Definition at line 116 of file newgrf_config.h.
Referenced by ShowNewGRFError().