Class LuaModScript
- Namespace
- LuaMod
- Assembly
- LuaMod.dll
public class LuaModScript
- Inheritance
-
object
LuaModScript
Fields
MaxScriptExecutionTime
protected const int MaxScriptExecutionTime = 500
Field Value
- int
PostReloadScript
public LuaModScript.del_postreload PostReloadScript
Field Value
- LuaModScript.del_postreload
ScriptMemoryBudget
protected const float ScriptMemoryBudget = 15
Field Value
- float
Methods
CallScriptFunction(DynValue, params object[])
public DynValue CallScriptFunction(DynValue luaFunc, params object[] Args)
Parameters
luaFunc
DynValue
Args
object[]
Returns
- DynValue
DestroyScript()
public void DestroyScript()
GetGlobal(string)
public DynValue GetGlobal(string name)
Parameters
name
string
Returns
- DynValue
IsScriptPathSafe(string)
public static bool IsScriptPathSafe(string path)
Parameters
path
string
Returns
- bool
LoadScript(string, bool, LuaBehaviour)
public bool LoadScript(string filename, bool reloading, LuaBehaviour host)
Parameters
filename
string
reloading
bool
host
LuaBehaviour
Returns
- bool
LoadScript(TextAsset, bool, LuaBehaviour)
public bool LoadScript(TextAsset scriptAsset, bool reloading, LuaBehaviour host)
Parameters
scriptAsset
TextAsset
reloading
bool
host
LuaBehaviour
Returns
- bool
ScriptIsValid()
public bool ScriptIsValid()
Returns
- bool
SetGlobal(string, object)
public void SetGlobal(string name, object val)
Parameters
name
string
val
object