Table of Contents

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 string

The path to the script file.

classNamespace string

The namespace of the script class, e.g. "RisingV.BossDrops.Scripts".

options ScriptLoaderOptions

Optional 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.