File diff r25987:b9d33db7c49f → r25988:ad2fd577c934
src/ai/ai_info.cpp
Show inline comments
 
@@ -16,25 +16,25 @@
 
#include "../string_func.h"
 
#include "../rev.h"
 
#include <set>
 

	
 
#include "../safeguards.h"
 

	
 
/**
 
 * Check if the API version provided by the AI is supported.
 
 * @param api_version The API version as provided by the AI.
 
 */
 
static bool CheckAPIVersion(const char *api_version)
 
{
 
	static const std::set<std::string> versions = { "0.7", "1.0", "1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "1.9", "1.10", "1.11", "12" };
 
	static const std::set<std::string> versions = { "0.7", "1.0", "1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "1.9", "1.10", "1.11", "12", "13" };
 
	return versions.find(api_version) != versions.end();
 
}
 

	
 
#if defined(_WIN32)
 
#undef GetClassName
 
#endif /* _WIN32 */
 
template <> const char *GetClassName<AIInfo, ST_AI>() { return "AIInfo"; }
 

	
 
/* static */ void AIInfo::RegisterAPI(Squirrel *engine)
 
{
 
	/* Create the AIInfo class, and add the RegisterAI function */
 
	DefSQClass<AIInfo, ST_AI> SQAIInfo("AIInfo");