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
filePath
stringThe path to the script file.
classNamespace
stringThe namespace of the script class, e.g. "RisingV.BossDrops.Scripts".
options
ScriptLoaderOptionsOptional 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.