diff options
Diffstat (limited to 'src/news_type.h')
-rw-r--r-- | src/news_type.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/news_type.h b/src/news_type.h index d8dc812a5..d96e2171a 100644 --- a/src/news_type.h +++ b/src/news_type.h @@ -8,6 +8,7 @@ #include "window_type.h" #include "date_type.h" #include "strings_type.h" +#include "sound_type.h" /** * Type of news. @@ -75,6 +76,15 @@ enum NewsBankrupcy { NB_BNEWCOMPANY = (4 << 4), ///< A new company has been started }; +/** + * Per-NewsType data + */ +struct NewsTypeData { + const char *const name; ///< Name + const byte age; ///< Maximum age of news items (in days) + const SoundFx sound; ///< Sound +}; + struct NewsItem { StringID string_id; ///< Message text (sometimes also used for storing other info) uint16 duration; ///< Remaining time for showing this news message |