QScriptModule CreateModule(const char* name, QModuleDefFunc* funcs)
Takes a name, and a list, returns a QScriptModule
void LoadMods(const char* filename)
Will load a file inside the root of every mod.
void LoadModsInDirectory(const char* folder, const char* filename)
Acts like LoadMods, but loads a file inside a subdirectory. (mods/*/folder/filename.*)
QScriptClassCreator StartClass(const char* name, QScriptClass parent)
Returns a
void AddMethod(QScriptClassCreator creator, const char* name, QType* params, QCFunc func, bool is_private = false)
Adds a method to the class creator. Takes a name, list which will be the parameters, which will be the callback, and an optional bool.
void AddScriptingMethod(QScriptClassCreator creator, const char* name, QScriptCallback callback, bool is_private)
Adds a scripting language method for the class creator. Takes a name, which will be called when the method is called, and an optional is_private bool.
void AddVariable(QScriptClassCreator creator, const char* name, QType type, QValue defaultval, bool is_private)
Adds a variable with a default value to the class creator. Takes a name, QType, , and an optional is_private bool.
Do not use this for adding strings. Use the next method instead.
void AddString(QScriptClassCreator creator, const char* name, const char* defaultval, bool is_private)
Adds a string variable to the class creator. Takes a name, a default value and an optional is_private bool.
QScriptClass FinishClass(QScriptClassCreator creator)
Finishes the class creator and returns a . Will delete the creator.