![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
Interface for plugins providing scripting. More...
#include "iscriptloader.h"
Public Member Functions | |
virtual | ~IScriptLoader () |
virtual IScriptLoaderInstance_ptr | CreateScriptLoaderInstance (const QString &relPath)=0 |
Creates an instance of the script loader. More... | |
Interface for plugins providing scripting.
This interface is to be implemented by plugins that support loading scripts if they wish to provide scripting support for other plugins.
Plugins that wish to load and execute scripts create instances of script loaders and use them for loading script objects.
See the documentation of IScriptLoaderInstance for details about script paths and such.
Definition at line 186 of file iscriptloader.h.
|
inlinevirtual |
Definition at line 189 of file iscriptloader.h.
|
pure virtual |
Creates an instance of the script loader.
The loader instance is the object that is used to load the scripts.
The script loader loads them from the (prefix + relPath) path, where path is one of paths later added to the instance's list of search paths via the IScriptLoaderInstance::AddGlobalPrefix() and IScriptLoaderInstance::AddLocalPrefix() functions.
Ownership is transferred to the caller.
[in] | relPath | The relative path of the scripts to be loaded. |