runtime

package
v0.0.0-...-11e9a73 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var COMMAND_CODES = map[int]string{
	0: "start game",
	1: "update tick",
	2: "set queue"}
View Source
var TURN_DELAY, _ = time.ParseDuration("500ms")

Functions

This section is empty.

Types

type Runtime

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

func New

func New(game interfaces.Game) *Runtime

func (*Runtime) AddOrder

func (r *Runtime) AddOrder(order interfaces.Order)

Allows for player orders to be added

Jump to

Keyboard shortcuts

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