diff options
author | rubidium <rubidium@openttd.org> | 2012-02-12 10:58:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-02-12 10:58:18 +0000 |
commit | 6356178a259d0734c49ef5c62bfbffb86097053b (patch) | |
tree | ab99429845ab4be9a15d179887f74a52ce5a3a9a /src/script/script_config.hpp | |
parent | 58269b7ad2a70b94de104ede2c69e126b58be534 (diff) | |
download | openttd-6356178a259d0734c49ef5c62bfbffb86097053b.tar.xz |
(svn r23936) -Feature [FS#5047]: readme/licence/changelog viewer for AI and game scripts (LordAro)
Diffstat (limited to 'src/script/script_config.hpp')
-rw-r--r-- | src/script/script_config.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/script/script_config.hpp b/src/script/script_config.hpp index b6c7a8fa6..9ae6fba70 100644 --- a/src/script/script_config.hpp +++ b/src/script/script_config.hpp @@ -16,6 +16,8 @@ #include <list> #include "../core/smallmap_type.hpp" #include "../core/string_compare_type.hpp" +#include "../company_type.h" +#include "../textfile_gui.h" /** Bitmask of flags for Script settings. */ enum ScriptConfigFlags { @@ -161,6 +163,14 @@ public: */ void SettingsToString(char *string, size_t size) const; + /** + * Search a textfile file next to this script. + * @param type The type of the textfile to search for. + * @param slot #CompanyID to check status of. + * @return The filename for the textfile, \c NULL otherwise. + */ + const char *GetTextfile(TextfileType type, CompanyID slot) const; + protected: const char *name; ///< Name of the Script int version; ///< Version of the Script |