world

package
v0.0.0-...-4d737b0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tile

type Tile struct {
	Point           image.Point `json:"point"`
	Value           string      `json:"value"`
	LandType        string      `json:"landType"`
	FrontStyleClass string      `json:"frontStyleClass"`
	BackStyleClass  string      `json:"backStyleClass"`
	GroundLevel     int         `json:"groundLevel"`
	WaterLevel      *int        `json:"waterLevel"`
	PostGlacial     bool        `json:"postGlacial"`
}

type WorldRequest

type WorldRequest struct {
	MinX, MinY, MaxX, MaxY int
}

type WorldResponse

type WorldResponse struct {
	Tiles []Tile `json:"map"`
	MinX  int    `json:"minX"`
	MinY  int    `json:"minY"`
	MaxX  int    `json:"maxX"`
	MaxY  int    `json:"maxY"`
}

type WorldService

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

func NewWorldService

func NewWorldService() WorldService

func (WorldService) Load

func (m WorldService) Load(request WorldRequest) (*WorldResponse, error)

Jump to

Keyboard shortcuts

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