culture

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

Documentation

Overview

Package culture provides methods and tools for generating fantasy cultures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Culture

type Culture struct {
	Adjective       string        `json:"adjective"`
	AlcoholicDrinks []drink.Drink `json:"alcoholic_drinks"`
	AttributeMax    int           `json:"attribute_max"`
	Attributes      struct {
		Aggression      int `json:"aggression"`
		Curiosity       int `json:"curiosity"`
		MagicPrevalence int `json:"magic_prevalence"`
		MagicStrength   int `json:"magic_strength"`
		Rigidity        int `json:"rigidity"`
		Superstition    int `json:"superstition"`
	} `json:"attributes"`
	BuildingStyle     buildings.BuildingStyle `json:"building_style"`
	ClothingStyle     clothing.Style          `json:"clothing_style"`
	CommonFamilyNames []string                `json:"common_family_names"`
	CommonFemaleNames []string                `json:"common_female_names"`
	CommonMaleNames   []string                `json:"common_male_names"`
	DrinkStyle        drink.Style             `json:"drink_style"`
	FoodStyle         food.Style              `json:"food_style"`
	Language          language.Language       `json:"language"`
	MusicStyle        music.Style             `json:"music_style"`
	Name              string                  `json:"name"`
	HomeBiome         string                  `json:"home_biome"`
	PrimaryRace       species.Species         `json:"primary_race"`
	Religion          religion.Religion       `json:"religion"`
	Views             []string                `json:"views"`
}

Culture is a fantasy culture

func Generate

func Generate(home geography.Area) (Culture, error)

Generate generates a culture

func Random

func Random() (Culture, error)

Random returns a completely random culture

func (Culture) Simplify

func (culture Culture) Simplify() SimplifiedCulture

Simplify returns a simplified version of a culture for display

type SimplifiedCulture

type SimplifiedCulture struct {
	Adjective         string                            `json:"adjective"`
	AlcoholicDrinks   []string                          `json:"alcoholic_drinks"`
	BuildingStyle     buildings.SimplifiedBuildingStyle `json:"building_style"`
	ClothingStyle     clothing.SimplifiedStyle          `json:"clothing_style"`
	CommonFamilyNames []string                          `json:"common_family_names"`
	CommonFemaleNames []string                          `json:"common_female_names"`
	CommonMaleNames   []string                          `json:"common_male_names"`
	FoodStyle         food.SimplifiedStyle              `json:"food_style"`
	Language          language.SimplifiedLanguage       `json:"language"`
	MusicStyle        string                            `json:"music_style"`
	Name              string                            `json:"name"`
	PrimaryRace       species.Simplified                `json:"primary_race"`
	Religion          religion.SimplifiedReligion       `json:"religion"`
	Views             []string                          `json:"views"`
}

SimplifiedCulture is a simplified version of culture for display

Jump to

Keyboard shortcuts

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