13 #include "../script/script_info.hpp"
All static information from an AI like name, version, etc.
bool CanLoadFromVersion(int version) const
Check if we can start this AI.
bool UseAsRandomAI() const
Use this AI as a random AI.
bool use_as_random
Should this AI be used when the user wants a "random AI"?
int min_loadable_version
The AI can load savegame data if the version is equal or greater than this.
const std::string & GetAPIVersion() const
Get the API version this AI is written for.
std::string api_version
API version used by this AI.
static void RegisterAPI(Squirrel *engine)
Register the functions of this class.
static SQInteger Constructor(HSQUIRRELVM vm)
Create an AI, using this AIInfo as start-template.
static SQInteger DummyConstructor(HSQUIRRELVM vm)
Create a dummy-AI.
All static information from an AI library like name, version, etc.
static void RegisterAPI(Squirrel *engine)
Register the functions of this class.
const std::string & GetCategory() const
Get the category this library is in.
std::string category
The category this library is in.
static SQInteger Constructor(HSQUIRRELVM vm)
Create an AI, using this AIInfo as start-template.
All static information from an Script like name, version, etc.
int version
Version of the script.
class Squirrel * engine
Engine used to register for Squirrel.