Skip to content

package plugins

import "kaijuengine.com/plugins"

Variables

GamePluginRegistry

[]reflect.Type{}

Functions

RegenerateAPI

func RegenerateAPI() error

Types

LuaVM

struct

type LuaVM struct {
    PluginPath string

    // Has unexported fields.
}

LaunchPlugins

func LaunchPlugins(adb assets.Database, path string) ([]*LuaVM, error)

NewScriptVM

func NewScriptVM(adb assets.Database, root string) (*LuaVM, error)

LuaVM.Close

func (vm *LuaVM) Close()

LuaVM.DoStringNamed

func (vm *LuaVM) DoStringNamed(code, name string) error

LuaVM.InvokeGlobalFunction

func (vm *LuaVM) InvokeGlobalFunction(name string)

LuaVM.SetGlobalGoFunction

func (vm *LuaVM) SetGlobalGoFunction(name string, fn func(*lua.State) int)