@@ -31,25 +31,25 @@ public:
static SQInteger Constructor(HSQUIRRELVM vm);
/**
* Check if we can start this Game.
*/
bool CanLoadFromVersion(int version) const;
* Get the API version this Game is written for.
const char *GetAPIVersion() const { return this->api_version; }
/* virtual */ bool IsDeveloperOnly() const { return this->is_developer_only; }
bool IsDeveloperOnly() const override { return this->is_developer_only; }
private:
int min_loadable_version; ///< The Game can load savegame data if the version is equal or greater than this.
bool is_developer_only; ///< Is the script selectable by non-developers?
const char *api_version; ///< API version used by this Game.
};
/** All static information from an Game library like name, version, etc. */
class GameLibrary : public ScriptInfo {
public:
GameLibrary() : ScriptInfo(), category(NULL) {};
~GameLibrary();