Table of Contents

Interface IScriptRuntimeContext

Namespace
LunyScript
Assembly
LunyScript.dll

Runtime context for a LunyScript instance operating on a specific object. Contains the script metadata, object reference, variables, and registered sequences.

public interface IScriptRuntimeContext

Properties

EventArgs

Generic event arguments for the currently executing event. Blocks cast this to the expected type (e.g. LunyCollision, LunyCollider). Null outside of event execution.

object EventArgs { get; }

Property Value

object

GlobalVariables

ITable GlobalVariables { get; }

Property Value

ITable

LocalVariables

ITable LocalVariables { get; }

Property Value

ITable

LunyObject

ILunyObject LunyObject { get; }

Property Value

ILunyObject

ScriptId

ScriptId ScriptId { get; }

Property Value

ScriptId

ScriptType

Type ScriptType { get; }

Property Value

Type