Documentation
¶
Overview ¶
Package tile provides a typed Go client for the tile manipulation commands registered by softmod/factop/tile.lua.
Index ¶
- type Area
- type Client
- func (c *Client) Checkerboard(area Area, tileA, tileB string, surface string) (string, error)
- func (c *Client) Fill(area Area, tileName string, surface string) (string, error)
- func (c *Client) Read(area Area, filterName string, surface string) ([]Tile, error)
- func (c *Client) Remove(area Area, filterName string, surface string) (string, error)
- func (c *Client) Replace(area Area, fromName, toName string, surface string) (string, error)
- type Tile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides typed methods for each tile-* RCON command.
func (*Client) Checkerboard ¶
Checkerboard fills the area with an alternating pattern of two tile types. Corresponds to: /tile-checker x1,y1,x2,y2 tileA tileB [surface]
func (*Client) Fill ¶
Fill places a single tile type across the entire area. Corresponds to: /tile-fill x1,y1,x2,y2 tileName [surface]
func (*Client) Read ¶
Read returns the tiles in the given area, optionally filtered by name. Corresponds to: /tile-read x1,y1,x2,y2 [filterName] [surface]
Click to show internal directories.
Click to hide internal directories.