scripting

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeLuaState

func MakeLuaState(esn string, validating bool) (*lua.LState, error)

func RegisterScriptingAPI

func RegisterScriptingAPI()

func RunLuaScript

func RunLuaScript(esn string, luaScript string) error

func ScriptingAPI

func ScriptingAPI(w http.ResponseWriter, r *http.Request)

func SetBControlFunctions

func SetBControlFunctions(L *lua.LState)

func ValidateLuaScript

func ValidateLuaScript(luaScript string) error

Types

type Bot

type Bot struct {
	ESN   string
	Robot *vector.Vector
}

type ExternalLuaRequest

type ExternalLuaRequest struct {
	ESN    string `json:"esn"`
	Script string `json:"script"`
}

Jump to

Keyboard shortcuts

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