xonotic

package
v0.0.0-...-456c657 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2015 License: Zlib Imports: 6 Imported by: 0

Documentation

Overview

Package xonotic handles interoperation with Xonotic game servers.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidFormat = errors.New("xonotic: invalid server reply")
)

Various errors this library can throw

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a rcon client for Xonotic.

func Dial

func Dial(host, port string) (c *Client)

Dial creates a client to a Xonotic server.

func (*Client) Status

func (c *Client) Status() (stat *Status, err error)

Status returns the server's status or an error describing the failure.

type Status

type Status struct {
	GameName    string `json:"gamename"`
	ModName     string `json:"modname"`
	GameVersion string `json:"gameversion"`
	MaxClients  int    `json:"maxclients"`
	Clients     int    `json:"clients"`
	Bots        int    `json:"bots"`
	Mapname     string `json:"mapname"`
	Hostname    string `json:"hostname"`
	QCStatus    string `json:"qcstatus"`
}

Jump to

Keyboard shortcuts

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