world

package
v0.0.0-...-1e5aed9 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 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 City

type City struct {
	Name string
	X    int
	Y    int
	Size int
}

type CityLayer

type CityLayer struct {
	CityRows []CityRow
	Cities   []City
}

type CityRow

type CityRow struct {
	CityCell []string
}

type SeenCell

type SeenCell struct {
	ID      string
	Symbol  string
	Seen    bool
	ColorFG color.RGBA
	ColorBG color.RGBA
}

type SeenLayer

type SeenLayer struct {
	Empty    bool
	SeenRows []SeenRow
}

type SeenRow

type SeenRow struct {
	SeenCellKeys []bool
}

type TerrainCell

type TerrainCell struct {
	Symbol  string
	ColorFG color.RGBA
	ColorBG color.RGBA
	Name    string
	ID      string
}

type TerrainLayer

type TerrainLayer struct {
	Empty       bool
	TerrainRows []TerrainRow
}

type TerrainRow

type TerrainRow struct {
	TerrainCellKeys []uint32
}

type World

type World struct {
	Name              string
	TerrainLayers     []TerrainLayer
	SeenLayers        map[string][]SeenLayer
	TerrainCellLookup map[uint32]TerrainCell
	SeenCellLookup    map[bool]SeenCell
	CityLayer         CityLayer
}

func Build

func Build(m metadata.Overmap, s save.Save, symbolizeByLandUseCode bool) (World, error)

Jump to

Keyboard shortcuts

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