types

package
v0.0.0-...-c4f5461 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IngrType

type IngrType uint8

IngrType indicates a Location's type in Ingress.

const (
	// IngrTypeUnknown indicates that a Location is unknown in Ingress.
	IngrTypeUnknown IngrType = iota

	// IngrTypeNone indicates that a Location is not in Ingress.
	IngrTypeNone

	// IngrTypePortal indicates that a Location is a Portal in Ingress.
	IngrTypePortal
)

func (IngrType) String

func (i IngrType) String() string

type Location

type Location struct {
	ID    string
	Name  string
	Image *string
	Notes *string

	Value spatial.Point

	IngrType IngrType
	PkmnType PkmnType
	WzrdType WzrdType

	Aliases []string
}

Location contains lots of info about a Point Of Interest in location-based games.

func GetLocations

func GetLocations(d *db.DB) ([]*Location, error)

GetLocations retrieves a list of Locations from the given DB.

type PkmnType

type PkmnType uint8

PkmnType indicates a Location's type in Pokémon GO.

const (
	// PkmnTypeUnknown indicates that a Location is unknown in Pokémon GO.
	PkmnTypeUnknown PkmnType = iota

	// PkmnTypeNone indicates that a Location is not in Pokémon GO.
	PkmnTypeNone

	// PkmnTypeStop indicates that a Location is a PokéStop in Pokémon GO.
	PkmnTypeStop

	// PkmnTypeGym indicates that a Location is a Gym in Pokémon GO.
	PkmnTypeGym

	// PkmnTypeEXGym indicates that a Location is an EX-eligible Gym in Pokémon GO.
	PkmnTypeEXGym

	// PkmnTypeNest indicates that a Location is a Nest in Pokémon GO.
	PkmnTypeNest
)

func (PkmnType) String

func (p PkmnType) String() string

type WzrdType

type WzrdType uint8

WzrdType indicates a Location's type in Harry Potter: Wizards Unite.

const (
	// WzrdTypeUnknown indicates that a Location is unknown in Harry Potter: Wizards Unite.
	WzrdTypeUnknown WzrdType = iota

	// WzrdTypeNone indicates that a Location is not in Harry Potter: Wizards Unite.
	WzrdTypeNone

	// WzrdTypeInn indicates that a Location is an Inn in Harry Potter: Wizards Unite.
	WzrdTypeInn

	// WzrdTypeGreenhouse indicates that a Location is a Greenhouse in Harry Potter: Wizards Unite.
	WzrdTypeGreenhouse

	// WzrdTypeFortress indicates that a Location is a Fortress in Harry Potter: Wizards Unite.
	WzrdTypeFortress
)

func (WzrdType) String

func (w WzrdType) String() string

Jump to

Keyboard shortcuts

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