diff options
author | rubidium <rubidium@openttd.org> | 2008-04-19 12:50:02 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-19 12:50:02 +0000 |
commit | 222988603fd6f84f62a4ae9b626e4514d7a87f24 (patch) | |
tree | 2a67de4cb8e5e459437c6aee723aacba825c22e8 /src/news_type.h | |
parent | 161b58863144b9677ce8d8cdce0f23be33ddab49 (diff) | |
download | openttd-222988603fd6f84f62a4ae9b626e4514d7a87f24.tar.xz |
(svn r12785) -Codechange: put all news-type related constants in the same array. Patch by cirdan.
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 |