protocol

package
v0.0.0-...-5fc1a02 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	ID         uint64  `json:"id"`
	Name       *string `json:"name"`
	Color      string  `json:"color"`
	Sprite     *string `json:"sprite"`
	X          float64 `json:"x"`
	Y          float64 `json:"y"`
	Radius     float64 `json:"radius"`
	EntityType uint64  `json:"entityType"`
}

type Event

type Event struct {
	Type string
	Data interface{}
}

type LogEvent

type LogEvent struct {
	LogType    int    `json:"logType"`
	ProtagName string `json:"protagName"`
	AntagName  string `json:"antagName"`
	Gains      int    `json:"gains"`
}

type TickRequest

type TickRequest struct {
	WorldState WorldState `json:"world_state"`
	Player     Entity     `json:"player"`
}

type TickResult

type TickResult struct {
	Dx float64 `json:"dx"`
	Dy float64 `json:"dy"`
}

type WorldState

type WorldState struct {
	Time     uint64   `json:"time"`
	Entities []Entity `json:"entities"`
	Progress float64  `json:"progress"`
}

Jump to

Keyboard shortcuts

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