ships

package
v0.0.0-...-0456d50 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind int
const (
	Vessel         Kind = iota // really, a ship
	EnclosedColony             // an enclosed colony on the surface of an orbit
	OpenColony                 // an open colony on the surface of an orbit
	OrbitalColony              // an enclosed colony orbiting the orbit
)

func (Kind) MarshalJSON

func (k Kind) MarshalJSON() ([]byte, error)

MarshalJSON implements the Marshaler interface.

func (*Kind) UnmarshalJSON

func (k *Kind) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the Unmarshaler interface.

type Ship

type Ship struct {
	Id       string // unique identifier for ship or colony
	Kind     Kind
	Location coordinates.Coordinates
}

Ship is either a ship or a colony(?!!?).

Jump to

Keyboard shortcuts

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