OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
13 #include "../script/script_info.hpp"
const std::string & GetAPIVersion() const
Get the API version this Game is written for.
std::string api_version
API version used by this Game.
class Squirrel * engine
Engine used to register for Squirrel.
std::string category
The category this library is in.
const std::string & GetCategory() const
Get the category this library is in.
static SQInteger Constructor(HSQUIRRELVM vm)
Create an GSLibrary, using this GSInfo as start-template.
int version
Version of the script.
bool CanLoadFromVersion(int version) const
Check if we can start this Game.
static SQInteger Constructor(HSQUIRRELVM vm)
Create an Game, using this GameInfo as start-template.
static void RegisterAPI(Squirrel *engine)
Register the functions of this class.
static void RegisterAPI(Squirrel *engine)
Register the functions of this class.
bool is_developer_only
Is the script selectable by non-developers?
All static information from an Game like name, version, etc.
All static information from an Game library like name, version, etc.
int min_loadable_version
The Game can load savegame data if the version is equal or greater than this.
All static information from an Script like name, version, etc.
bool IsDeveloperOnly() const override
Can this script be selected by developers only?