|
OpenTTD Source 20260531-master-g0e951f3528
|
Per-NewsType data. More...
#include <news_type.h>
Public Member Functions | |
| constexpr | NewsTypeData (std::string_view name, uint8_t age, SoundFx sound) |
| Construct this entry. | |
| NewsDisplay | GetDisplay () const |
| Return the news display option. | |
Data Fields | |
| const std::string_view | name |
| Name. | |
| const uint8_t | age |
| Maximum age of news items (in days). | |
| const SoundFx | sound |
| Sound. | |
Per-NewsType data.
Definition at line 109 of file news_type.h.
|
inlineconstexpr |
| NewsDisplay NewsTypeData::GetDisplay | ( | ) | const |
Return the news display option.
Definition at line 351 of file news_gui.cpp.
References SettingDesc::AsIntSetting(), GetSettingFromName(), SettingDesc::IsIntSetting(), and name.
| const uint8_t NewsTypeData::age |
Maximum age of news items (in days).
Definition at line 111 of file news_type.h.
Referenced by NewsTypeData().
| const std::string_view NewsTypeData::name |
| const SoundFx NewsTypeData::sound |