package lua
import "kaijuengine.com/plugins/lua"
Types
State
struct
type State struct {
// Has unexported fields.
}
New
State.AbsIndex
func (l *State) AbsIndex(idx int) int
State.ArgError
func (l *State) ArgError(arg int, message string) int
State.Call
func (l *State) Call(args, returns int) error
State.Close
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.DoStringNamed
func (l *State) DoStringNamed(code, name string) error
State.Error
func (l *State) Error(message string) int
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.IsNil
func (l *State) IsNil(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.LoadString
func (l *State) LoadString(code, name string) error
State.NewTable
func (l *State) NewTable()
State.OpenLibraries
func (l *State) OpenLibraries() error
State.PinnedPointerCount
func (l *State) PinnedPointerCount() int
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.PushNil
func (l *State) PushNil()
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.RawGetI
func (l *State) RawGetI(idx, n int)
State.RawSetI
func (l *State) RawSetI(idx, n int)
State.Remove
func (l *State) Remove(idx int)
State.RemovePinnedPointer
func (l *State) RemovePinnedPointer(idx int)
State.SandboxLibraries
func (l *State) SandboxLibraries()
State.SetField
func (l *State) SetField(idx int, name string)
State.SetGlobal
func (l *State) SetGlobal(name string)
State.SetTable
func (l *State) SetTable(idx int)
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