Documentation
¶
Overview ¶
Package plugin provides the Plugin SDK that plugin authors import. A plugin implements the Plugin interface and calls Run(impl) from main().
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clients ¶
type Clients interface {
Game() *game.Client
Entity() *entity.Client
Tile() *tile.Client
Surface() *surface.Client
Resource() *resource.Client
Player() *player.Client
PlayerAttr() *playerattr.Client
}
Clients provides lazily-initialized typed client accessors.
type Context ¶
type Context interface {
Rcon(command string) (string, error)
Subscribe(subject string, handler func([]byte)) error
Publish(subject string, data []byte) error
DataDir() string
Logger() *slog.Logger
Done() <-chan struct{}
Clients() Clients
}
Context provides plugin access to factop infrastructure.
Click to show internal directories.
Click to hide internal directories.