world

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const LAND sir = 2
View Source
const OCEAN sir = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type Tile

type Tile struct {
	Altitude    int
	Temperature int
	Humidity    int
	IsOcean     bool
}

Tile is a world tile

type World

type World struct {
	Name              string
	Tiles             [][]Tile
	Cultures          []culture.Culture
	GeographicRegions []region.Region
}

World is an entire fantasy world

func Generate

func Generate() (World, error)

Generate procedurally generates a world

Jump to

Keyboard shortcuts

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