Interface IScriptLoader
- Namespace
- RisingV.Scripting.RuntimeHost
- Assembly
- RisingV.Scripting.dll
Interface for loading scripts.
public interface IScriptLoader
- Extension Methods
Methods
LoadScript(string, string, ScriptLoaderOptions?)
Loads a script from the specified file path and namespace.
IScript<IScriptContext<ScriptData>> LoadScript(string filePath, string classNamespace, ScriptLoaderOptions? options = null)
Parameters
filePathstringThe path to the script file.
classNamespacestringThe namespace of the script class, e.g. "RisingV.BossDrops.Scripts".
optionsScriptLoaderOptionsOptional script loader options, such as the script name and whether to print diagnostics.
Returns
- IScript<IScriptContext<ScriptData>>
An instance of IScript<TContext> representing the loaded script.