Discover Packages
github.com/egnwd/outgain
server
protocol
package
Version:
v0.0.0-...-5fc1a02
Opens a new window with list of versions in this module.
Published: Jun 20, 2016
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Event struct {
Type string
Data interface{}
}
type LogEvent struct {
LogType int `json:"logType"`
ProtagName string `json:"protagName"`
AntagName string `json:"antagName"`
Gains int `json:"gains"`
}
type TickRequest struct {
WorldState WorldState `json:"world_state"`
Player Entity `json:"player"`
}
type TickResult struct {
Dx float64 `json:"dx"`
Dy float64 `json:"dy"`
}
type WorldState struct {
Time uint64 `json:"time"`
Entities []Entity `json:"entities"`
Progress float64 `json:"progress"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.