religion

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

Overview

Package religion implements fantasy religions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	Name            string   `json:"name"`
	Commonality     int      `json:"commonality"`
	FounderTitle    string   `json:"founder_title"`
	LeaderTitle     string   `json:"leader_title"`
	PantheonMinSize int      `json:"pantheon_min_size"`
	PantheonMaxSize int      `json:"pantheon_max_size"`
	GatheringPlaces []string `json:"gathering_places"`
}

Class is a type of religion

type Religion

type Religion struct {
	Name           string            `json:"name"`
	CommonName     string            `json:"common_name"`
	Class          Class             `json:"class"`
	Pantheon       pantheon.Pantheon `json:"pantheon"`
	GatheringPlace string            `json:"gathering_place"`
	Virtues        []string          `json:"virtues"`
}

Religion is a religion

func Generate

func Generate(originLanguage language.Language) (Religion, error)

Generate procedurally generates a religion

func Random

func Random() (Religion, error)

Random generates a completely random religion

func (Religion) Simplify

func (religion Religion) Simplify() SimplifiedReligion

Simplify returns a simplified version of a Religion

type SimplifiedReligion

type SimplifiedReligion struct {
	Name           string                      `json:"name"`
	CommonName     string                      `json:"common_name"`
	Type           string                      `json:"type"`
	LeaderTitle    string                      `json:"leader_title"`
	GatheringPlace string                      `json:"gathering_place"`
	Pantheon       pantheon.SimplifiedPantheon `json:"pantheon"`
	Virtues        []string                    `json:"virtues"`
}

SimplifiedReligion is a simplified version of Religion for display

Jump to

Keyboard shortcuts

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