lua

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API added in v0.6.2

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

func NewAPI added in v0.6.2

func NewAPI(config Config) *API

func (*API) Init added in v0.6.2

func (api *API) Init()

func (*API) LuaAddTimer added in v0.6.2

func (api *API) LuaAddTimer(l *lua.LState) int

func (*API) LuaDelTimer added in v0.6.2

func (api *API) LuaDelTimer(l *lua.LState) int

func (*API) LuaEcho added in v0.6.2

func (api *API) LuaEcho(l *lua.LState) int

func (*API) LuaPrint added in v0.6.2

func (api *API) LuaPrint(l *lua.LState) int

func (*API) LuaRegEx added in v0.6.2

func (api *API) LuaRegEx(l *lua.LState) int

func (*API) LuaRun added in v0.6.2

func (api *API) LuaRun(l *lua.LState) int

func (*API) LuaSend added in v0.6.2

func (api *API) LuaSend(l *lua.LState) int

func (*API) OnReceive added in v0.6.2

func (api *API) OnReceive(raw, input string)

func (*API) OnSend added in v0.6.2

func (api *API) OnSend(cmd string) bool

func (*API) Panic added in v0.6.2

func (api *API) Panic(err error)

func (*API) Reload added in v0.6.2

func (api *API) Reload() error

func (*API) SetMud added in v0.6.2

func (api *API) SetMud(w io.Writer)

func (*API) SetScreen added in v0.6.2

func (api *API) SetScreen(w printer.Printer)

type Config added in v0.6.2

type Config struct {
	Enable bool   `flag:"|true|是否加载 Lua 机器人"`
	Path   string `flag:"p|lua|Lua 插件路径 {path}"`
}

type Timer

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

func (*Timer) Emit

func (t *Timer) Emit(l *API)

Jump to

Keyboard shortcuts

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