Table of Contents

Class LuauBase

Namespace
LuauInterop
Assembly
LuauInterop.dll

Base class for all Luau objects that hold a reference to the Lua state.

public abstract class LuauBase : IDisposable
Inheritance
LuauBase
Implements
Derived
Inherited Members

Constructors

LuauBase(Luau, LuaState, int)

Base class for all Luau objects that hold a reference to the Lua state.

protected LuauBase(Luau owner, LuaState state, int reference)

Parameters

owner Luau
state LuaState
reference int

Properties

IsDisposed

Whether this object has been disposed.

public bool IsDisposed { get; }

Property Value

bool

Owner

The Luau instance that owns this object.

public Luau Owner { get; }

Property Value

Luau

Reference

The reference to the Lua object in the registry.

public int Reference { get; }

Property Value

int

State

The LuaState that this object is associated with.

public LuaState State { get; }

Property Value

LuaState

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

~LuauBase()

protected ~LuauBase()

PushReference()

public void PushReference()

ThrowIfDisposed()

protected void ThrowIfDisposed()