scripting

package
v0.0.0-...-f4a0efd Latest Latest
Warning

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

Go to latest
Published: Aug 19, 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