luax

package
v0.0.0-...-16132a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(thread *lua.LState, funcName string, args ...interface{}) (lua.LValue, error)

func CallFunction

func CallFunction(root *lua.LState, fn *lua.LFunction, args ...interface{}) (lua.LValue, error)

func CleanupThreadLocalState

func CleanupThreadLocalState()

func ClearConfiguration

func ClearConfiguration(L *lua.LState)

func Close

func Close(thread *lua.LState)

func Execute

func Execute(root *lua.LState, thread *lua.LState, funcName string, args ...interface{}) (lua.ResumeState, lua.LValue, error)

func InlineCall

func InlineCall(root *lua.LState, scriptPath string, funcName string, args ...interface{}) (lua.LValue, error)

func LValueToInterface

func LValueToInterface(lv lua.LValue) (interface{}, bool)

func NewLuable

func NewLuable(L *lua.LState, obj Luable) *lua.LUserData

func NewState

func NewState() *lua.LState

func NewThread

func NewThread(root *lua.LState, path string) (*lua.LState, error)

func ParseTable

func ParseTable(L *lua.LState, argument lua.LValue, argIndex int) (map[lua.LValue]lua.LValue, bool)

func RegisterFunc

func RegisterFunc(L *lua.LState, name string, fn lua.LGFunction)

func RegisterLuaDerivedType

func RegisterLuaDerivedType[T Luable, B Luable](L *lua.LState)

func RegisterLuaType

func RegisterLuaType[T Luable](L *lua.LState)

func RegisterOnCreateHook

func RegisterOnCreateHook(fn func(*lua.LState))

func RegisterThreadLocalInitHook

func RegisterThreadLocalInitHook(fn func(*lua.LState))

func Resume

func Resume(root *lua.LState, thread *lua.LState, args ...lua.LValue) (lua.ResumeState, error)

func SetAlwaysReload

func SetAlwaysReload(enabled bool)

func SetConfiguration

func SetConfiguration(L *lua.LState, cfg Configuration)

func SkillScriptHookName

func SkillScriptHookName(hook string, skillID uint32) string

Types

type Configuration

type Configuration struct {
	ActorContext actor.Context
	KeepAlive    bool
}

func GetConfiguration

func GetConfiguration(L *lua.LState) (Configuration, bool)

type Luable

type Luable interface {
	lua.LValue
	LuaTypeName() string
	LuaBuiltinFuncs() map[string]lua.LGFunction
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL