lua

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	// contains filtered or unexported fields
}

func (*Env) Call

func (e *Env) Call(name string) error

func (*Env) LoadScript

func (e *Env) LoadScript(name, script string) error

func (*Env) RegisterFn

func (e *Env) RegisterFn(name string, fn lua.Function)

func (*Env) RegisterGetterSetterNumber

func (e *Env) RegisterGetterSetterNumber(name string, value *float64)

func (*Env) RegisterMap

func (e *Env) RegisterMap(name string, data map[string]any)

func (*Env) SetInt

func (e *Env) SetInt(name string, value int)

type ScriptVM

type ScriptVM struct {
	// contains filtered or unexported fields
}

func NewVM

func NewVM() *ScriptVM

func (*ScriptVM) NewEnv

func (vm *ScriptVM) NewEnv() *Env

func (*ScriptVM) SetInt

func (vm *ScriptVM) SetInt(name string, value int)

Jump to

Keyboard shortcuts

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