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