script

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenPackage

func OpenPackage(L *lua.LState) int

Types

type Engine

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

func NewEngine

func NewEngine() *Engine

func (*Engine) Close

func (e *Engine) Close()

func (*Engine) DoReader

func (e *Engine) DoReader(path string, rdr io.Reader) error

func (*Engine) DoString

func (e *Engine) DoString(file string) error

func (*Engine) GetUserData

func (e *Engine) GetUserData(name string, value interface{}) *lua.LUserData

func (*Engine) Invoke

func (e *Engine) Invoke(fn *lua.LFunction, args []interface{}, outArg reflect.Value) error

func (*Engine) SetCallback

func (e *Engine) SetCallback(name string, _func interface{})

func (*Engine) SetEnum

func (e *Engine) SetEnum(name string, value int64)

func (*Engine) WrapInterface

func (e *Engine) WrapInterface(name string, interfacePointer interface{}, newFunc interface{}, exports []string)

type Filesystem

type Filesystem interface {
	Exists(path string) bool
	Open(path string) (io.ReadCloser, error)
}

Jump to

Keyboard shortcuts

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