Go to the documentation of this file.
10 #ifndef AI_INSTANCE_HPP
11 #define AI_INSTANCE_HPP
13 #include "../script/script_instance.hpp"
CommandCallbackData * GetDoCommandCallback() override
Get the callback handling DoCommands in case of networking.
Runtime information about a script like a pointer to the squirrel vm and the current state.
void Initialize(class AIInfo *info)
Initialize the AI and prepare it for its first run.
void LoadDummyScript() override
Load the dummy script.
void CommandCallbackData(Commands cmd, const CommandCost &result, const CommandDataBuffer &data, CommandDataBuffer result_data)
Define a callback function for the client, after the command is finished.
void Died() override
Tell the script it died.
ScriptInfo * FindLibrary(const char *library, int version) override
Find a library.
All static information from an AI like name, version, etc.
Runtime information about an AI like a pointer to the squirrel vm and the current state.
void RegisterAPI() override
Register all API functions to the VM.
All static information from an Script like name, version, etc.
int GetSetting(const char *name) override
Get the value of a setting of the current instance.