OpenTTD Source 20241224-master-gf74b0cf984
|
Per-NewsType data. More...
#include <news_type.h>
Public Member Functions | |
NewsTypeData (const char *name, uint8_t age, SoundFx sound) | |
Construct this entry. | |
NewsDisplay | GetDisplay () const |
Return the news display option. | |
Data Fields | |
const char *const | name |
Name. | |
const uint8_t | age |
Maximum age of news items (in days) | |
const SoundFx | sound |
Sound. | |
Per-NewsType data.
Definition at line 100 of file news_type.h.
|
inline |
Construct this entry.
name | The name of the type. |
age | The maximum age for these messages. |
sound | The sound to play. |
Definition at line 111 of file news_type.h.
NewsDisplay NewsTypeData::GetDisplay | ( | ) | const |
Return the news display option.
Definition at line 340 of file news_gui.cpp.
References SettingDesc::AsIntSetting(), GetSettingFromName(), SettingDesc::IsIntSetting(), name, and IntSettingDesc::Read().
Referenced by ShowLastNewsMessage().
const uint8_t NewsTypeData::age |
Maximum age of news items (in days)
Definition at line 102 of file news_type.h.
const char* const NewsTypeData::name |
const SoundFx NewsTypeData::sound |