12 #ifndef SCRIPT_INFO_HPP 13 #define SCRIPT_INFO_HPP 16 #include "../misc/countedptr.hpp" int GetVersion() const
Get the version of the script.
int version
Version of the script.
class ScriptScanner * scanner
ScriptScanner object that was used to scan this script info.
HSQOBJECT * SQ_instance
The Squirrel instance created for this info.
bool CheckMethod(const char *name) const
Check if a given method exists.
const ScriptConfigItemList * GetConfigList() const
Get the config list for this Script.
const char * GetName() const
Get the Name of the script.
const char * date
The date the script was written at.
std::list< ScriptConfigItem > ScriptConfigItemList
List of ScriptConfig items.
const char * url
URL of the script.
const char * GetShortName() const
Get the 4 character long short name of the script.
ScriptConfigItemList config_list
List of settings from this Script.
const char * instance_name
Name of the main class in the script.
int GetSettingDefaultValue(const char *name) const
Get the default value for a setting.
Scanner to help finding scripts.
const char * GetMainScript() const
Get the filename of the main.nut script.
const char * GetDate() const
Get the last-modified date of the script.
const char * short_name
Short name (4 chars) which uniquely identifies the script.
SQInteger AddLabels(HSQUIRRELVM vm)
Add labels for a setting.
All static information from an Script like name, version, etc.
const char * author
Author of the script.
bool GetSettings()
Get the settings of the Script.
const char * GetURL() const
Get the website for this script.
const ScriptConfigItem * GetConfigItem(const char *name) const
Get the description of a certain Script config option.
virtual class ScriptScanner * GetScanner()
Get the scanner which has found this ScriptInfo.
const char * GetDescription() const
Get the description of the script.
const char * name
Full name of the script.
SQInteger AddSetting(HSQUIRRELVM vm)
Set a setting.
ScriptConfig stores the configuration settings of every Script.
Info about a single Script setting.
static const int MAX_SL_OPS
The maximum number of operations for saving or loading the data of a script.
static const int MAX_GET_OPS
Number of operations to get the author and similar information.
char * main_script
The full path of the script.
static const int MAX_CREATEINSTANCE_OPS
Number of operations to create an instance of a script.
const char * GetAuthor() const
Get the Author of the script.
class Squirrel * engine
Engine used to register for Squirrel.
static const int MAX_CONSTRUCTOR_OPS
The maximum number of operations for initial start of a script.
static SQInteger Constructor(HSQUIRRELVM vm, ScriptInfo *info)
Process the creation of a FileInfo object.
const char * description
Small description of the script.
char * tar_file
If, which tar file the script was in.
static const int MAX_GET_SETTING_OPS
Maximum number of operations allowed for getting a particular setting.
const char * GetInstanceName() const
Get the name of the instance of the script to create.
const char * GetTarFile() const
Get the filename of the tar the script is in.
virtual bool IsDeveloperOnly() const
Can this script be selected by developers only?