field

package
v0.0.0-...-a30bc99 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Division     division.Division `json:"division"`
	ChargeGroups []charge.Group    `json:"charge_groups"`
	FieldType    Type              `json:"field_type"`
}

Field is the field of a coat of arms

func ByName

func ByName(name string) (Field, error)

ByName returns a field by name

func Random

func Random() (Field, error)

Random returns a random field

type Type

type Type struct {
	CenterPoint  geometry.Point `json:"center_point"`
	ImageWidth   int            `json:"image_width"`
	ImageHeight  int            `json:"image_height"`
	MaskWidth    int            `json:"mask_width"`
	MaskHeight   int            `json:"mask_height"`
	Name         string         `json:"name"`
	MaskFileName string         `json:"mask_file_name"`
}

Type is a type of field

func RandomType

func RandomType() Type

RandomType returns a random field type

Jump to

Keyboard shortcuts

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