pantheon

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

Documentation

Overview

Package pantheon implements fantasy pantheons

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pantheon

type Pantheon struct {
	Deities []deity.Deity `json:"deities"`
}

Pantheon is a non-hierarchical group of deities

func Generate

func Generate(minSize int, maxSize int, lang language.Language) (Pantheon, error)

Generate creates a random pantheon of deities

func (Pantheon) GenerateRelationships

func (pantheon Pantheon) GenerateRelationships() ([]deity.Deity, error)

GenerateRelationships generates relationships between deities

func (Pantheon) Simplify

func (pantheon Pantheon) Simplify() SimplifiedPantheon

Simplify returns a simplified pantheon for display

type SimplifiedPantheon

type SimplifiedPantheon struct {
	Deities []deity.SimplifiedDeity `json:"deities"`
}

SimplifiedPantheon is a simplified version of the data for display

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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