country

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

Documentation

Overview

Package country provides structures and tools for generating fantasy countries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Country

type Country struct {
	Name            string
	DominantCulture culture.Culture
	Government      Government
	Regions         []region.Region
	Capital         string
	Heraldry        heraldry.Device
}

Country is a geographic and political area

func Generate

func Generate() (Country, error)

Generate procedurally generates a country

func (Country) GetAllTileCoordinates

func (c Country) GetAllTileCoordinates() []geometry.Point

GetAllTileCoordinates returns a slice of all coordinates in the country

type Government

type Government struct {
	Type    string
	Leaders []character.Character
}

Government is a political structure

Jump to

Keyboard shortcuts

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