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
Properties
IsDisposed
Whether this object has been disposed.
public bool IsDisposed { get; }
Property Value
Owner
The Luau instance that owns this object.
public Luau Owner { get; }
Property Value
Reference
The reference to the Lua object in the registry.
public int Reference { get; }
Property Value
State
The LuaState that this object is associated with.
public LuaState State { get; }
Property Value
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
disposingbool
~LuauBase()
protected ~LuauBase()
PushReference()
public void PushReference()
ThrowIfDisposed()
protected void ThrowIfDisposed()