13#include "../script/script_info.hpp"
19 static constexpr std::string_view ApiVersions[]{
"1.2",
"1.3",
"1.4",
"1.5",
"1.6",
"1.7",
"1.8",
"1.9",
"1.10",
"1.11",
"12",
"13",
"14",
"15" };
All static information from an Game like name, version, etc.
bool IsDeveloperOnly() const override
Can this script be selected by developers only?
std::string api_version
API version used by 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.
bool CanLoadFromVersion(int version) const
Check if we can start this Game.
bool is_developer_only
Is the script selectable by non-developers?
const std::string & GetAPIVersion() const
Get the API version this Game is written for.
int min_loadable_version
The Game can load savegame data if the version is equal or greater than this.
All static information from an Game 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 GSLibrary, using this GSInfo 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.