diff options
Diffstat (limited to 'src/ai/ai_info.hpp')
-rw-r--r-- | src/ai/ai_info.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ai/ai_info.hpp b/src/ai/ai_info.hpp index 81b1def3e..0a6e51eda 100644 --- a/src/ai/ai_info.hpp +++ b/src/ai/ai_info.hpp @@ -99,10 +99,16 @@ public: */ bool UseAsRandomAI() const { return this->use_as_random; } + /** + * Get the API version this AI is written for. + */ + const char *GetAPIVersion() const { return this->api_version; } + private: AIConfigItemList config_list; int min_loadable_version; bool use_as_random; + const char *api_version; }; class AILibrary : public AIFileInfo { |