overmap

package
v0.0.0-...-d13637e Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Overmap

type Overmap struct {
	Chunks []OvermapChunk
}

func FromSave

func FromSave(save string) (*Overmap, error)

func (*Overmap) RenderToAttributes

func (o *Overmap) RenderToAttributes(m *metadata.Overmap) (*World, error)

type OvermapChunk

type OvermapChunk struct {
	X      int
	Y      int
	Layers [][]TerrainGroup `json:"layers"`
}

type TerrainGroup

type TerrainGroup struct {
	OvermapTerrainID string
	Count            float64
}

func (*TerrainGroup) UnmarshalJSON

func (tg *TerrainGroup) UnmarshalJSON(bs []byte) error

type World

type World struct {
	Layers []WorldLayer
}

func (*World) RenderToFiles

func (w *World) RenderToFiles(root string) error

type WorldCell

type WorldCell struct {
	Symbol  string
	ColorFG *image.Uniform
	ColorBG *image.Uniform
}

type WorldLayer

type WorldLayer struct {
	Rows []WorldRow
}

type WorldRow

type WorldRow struct {
	Cells []WorldCell
}

Jump to

Keyboard shortcuts

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