store

package
v0.0.0-...-86323e0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapMap

func MapMap(filename string, handler func(m Map) (Map, error)) error

Types

type Circle

type Circle struct {
	Polygon     int `json:"polygon"`
	Radius      int `json:"radius"`
	StrokeWidth int `json:"stroke_width"`
}

type Colors

type Colors struct {
	Cliff  string `json:"cliff"`
	Forest string `json:"forest"`
	Shore  string `json:"shore"`
	Sea    string `json:"sea"`
}

type Deleter

type Deleter struct {
	NodeID int `json:"id"`
}

type Line

type Line struct {
	Color       string `json:"color"`
	StrokeWidth int    `json:"stroke_width"`
}

type Map

type Map struct {
	Nodes   []Node  `json:"nodes"`
	Circle  Circle  `json:"circle"`
	Options Options `json:"options"`
	Line    Line    `json:"line"`
}

type Node

type Node struct {
	ID   int     `json:"id"`
	X    float32 `json:"x"`
	Y    float32 `json:"y"`
	Type string  `json:"type"`
}

type Options

type Options struct {
	Colors Colors `json:"colors"`
}

Jump to

Keyboard shortcuts

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