models

package
v2.6.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: GPL-3.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ZapScriptCmdLaunch       = "launch"
	ZapScriptCmdLaunchSystem = "launch.system"
	ZapScriptCmdLaunchRandom = "launch.random"
	ZapScriptCmdLaunchSearch = "launch.search"

	ZapScriptCmdPlaylistPlay     = "playlist.play"
	ZapScriptCmdPlaylistStop     = "playlist.stop"
	ZapScriptCmdPlaylistNext     = "playlist.next"
	ZapScriptCmdPlaylistPrevious = "playlist.previous"
	ZapScriptCmdPlaylistGoto     = "playlist.goto"
	ZapScriptCmdPlaylistPause    = "playlist.pause"
	ZapScriptCmdPlaylistLoad     = "playlist.load"
	ZapScriptCmdPlaylistOpen     = "playlist.open"

	ZapScriptCmdExecute  = "execute"
	ZapScriptCmdDelay    = "delay"
	ZapScriptCmdEvaluate = "evaluate"
	ZapScriptCmdStop     = "stop"
	ZapScriptCmdEcho     = "echo"

	ZapScriptCmdMisterINI    = "mister.ini"
	ZapScriptCmdMisterCore   = "mister.core"
	ZapScriptCmdMisterScript = "mister.script"
	ZapScriptCmdMisterMGL    = "mister.mgl"

	ZapScriptCmdHTTPGet  = "http.get"
	ZapScriptCmdHTTPPost = "http.post"

	ZapScriptCmdInputKeyboard = "input.keyboard"
	ZapScriptCmdInputGamepad  = "input.gamepad"
	ZapScriptCmdInputCoinP1   = "input.coinp1"
	ZapScriptCmdInputCoinP2   = "input.coinp2"

	ZapScriptCmdUINotice = "ui.notice"
	ZapScriptCmdUIPicker = "ui.picker"

	ZapScriptCmdInputKey = "input.key" // DEPRECATED
	ZapScriptCmdKey      = "key"       // DEPRECATED
	ZapScriptCmdCoinP1   = "coinp1"    // DEPRECATED
	ZapScriptCmdCoinP2   = "coinp2"    // DEPRECATED
	ZapScriptCmdRandom   = "random"    // DEPRECATED
	ZapScriptCmdShell    = "shell"     // DEPRECATED
	ZapScriptCmdCommand  = "command"   // DEPRECATED
	ZapScriptCmdINI      = "ini"       // DEPRECATED
	ZapScriptCmdSystem   = "system"    // DEPRECATED
	ZapScriptCmdGet      = "get"       // DEPRECATED
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdEvaluateArgs

type CmdEvaluateArgs struct {
	ZapScript string `json:"zapscript" arg:"position=1"`
}

type CmdLaunchArgs

type CmdLaunchArgs struct {
	Launcher  *string `json:"launcher"`
	Name      *string `json:"name"`
	System    *string `json:"system"`
	URL       *string `json:"url"`
	PreNotice *string `json:"preNotice"`
	Path      string  `json:"path" arg:"position=1"`
}

type CmdNotice

type CmdNotice struct {
	Loader *bool  `json:"loader"`
	Text   string `json:"text" arg:"position=1"`
}

type CmdPicker

type CmdPicker struct {
	Items []ZapScript `json:"items"`
}

type ZapScript

type ZapScript struct {
	Name      *string        `json:"name"`
	Cmds      []ZapScriptCmd `json:"cmds"`
	ZapScript int            `json:"zapscript"`
}

type ZapScriptCmd

type ZapScriptCmd struct {
	ID   string          `json:"id"`   // internal id of command instance
	Name *string         `json:"name"` // optional display name
	Cmd  string          `json:"cmd"`
	Args json.RawMessage `json:"args"`
}

Jump to

Keyboard shortcuts

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