Table of Contents

Class ScriptLoaderBase

Namespace
MoonSharp.Interpreter.Loaders
Assembly
Assembly-CSharp.dll
public abstract class ScriptLoaderBase : IScriptLoader
Inheritance
ScriptLoaderBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

ScriptLoaderBase()

protected ScriptLoaderBase()

Properties

IgnoreLuaPathGlobal

public bool IgnoreLuaPathGlobal { get; set; }

Property Value

bool

ModulePaths

public string[] ModulePaths { get; set; }

Property Value

string[]

Methods

GetDefaultEnvironmentPaths()

public static string[] GetDefaultEnvironmentPaths()

Returns

string[]

LoadFile(string, Table)

public abstract object LoadFile(string file, Table globalContext)

Parameters

file string
globalContext Table

Returns

object

ResolveFileName(string, Table)

public virtual string ResolveFileName(string filename, Table globalContext)

Parameters

filename string
globalContext Table

Returns

string

ResolveModuleName(string, Table)

public virtual string ResolveModuleName(string modname, Table globalContext)

Parameters

modname string
globalContext Table

Returns

string

ResolveModuleName(string, string[])

protected virtual string ResolveModuleName(string modname, string[] paths)

Parameters

modname string
paths string[]

Returns

string

ScriptFileExists(string)

public abstract bool ScriptFileExists(string name)

Parameters

name string

Returns

bool

UnpackStringPaths(string)

public static string[] UnpackStringPaths(string str)

Parameters

str string

Returns

string[]