package lua
import "kaiju/plugins/lua"
Types
State
struct
type State struct {
// Has unexported fields.
}
New
State.Call
func (l *State) Call(args, returns int)
State.CreateTable
func (l *State) CreateTable(arrLen, fieldLen int)
State.DoFile
func (l *State) DoFile(file string) error
State.DoString
func (l *State) DoString(code string) error
State.Field
func (l *State) Field(idx int, name string)
State.Global
func (l *State) Global(name string)
State.IsBoolean
func (l *State) IsBoolean(idx int) bool
State.IsFunction
func (l *State) IsFunction(idx int) bool
State.IsNumber
func (l *State) IsNumber(idx int) bool
State.IsString
func (l *State) IsString(idx int) bool
State.IsTable
func (l *State) IsTable(idx int) bool
State.IsUserData
func (l *State) IsUserData(idx int) bool
State.NewTable
func (l *State) NewTable()
State.OpenLibraries
func (l *State) OpenLibraries() error
State.Pop
func (l *State) Pop(idx int)
State.PushBoolean
func (l *State) PushBoolean(value bool)
State.PushGoFunction
func (l *State) PushGoFunction(fn func(state *State) int)
State.PushNumber
func (l *State) PushNumber(value float64)
State.PushString
func (l *State) PushString(value string)
State.PushUserData
func (l *State) PushUserData(value reflect.Value)
State.PushValue
func (l *State) PushValue(idx int)
State.RemovePinnedPointer
func (l *State) RemovePinnedPointer(idx int)
State.SetField
func (l *State) SetField(idx int, name string)
State.SetGlobal
func (l *State) SetGlobal(name string)
State.ToBoolean
func (l *State) ToBoolean(idx int) bool
State.ToNumber
func (l *State) ToNumber(idx int) float64
State.ToString
func (l *State) ToString(idx int) string
State.ToUserData
func (l *State) ToUserData(idx int) any
State.Top
func (l *State) Top() int