Documentation ¶
Index ¶
- func AllAppearancesForDomains(domains []Domain) []string
- func AllPersonalitiesForDomains(domains []Domain) []string
- func InSlice(domain Domain, domains []Domain) bool
- func RandomAppearanceFromDomains(domains []Domain) (string, error)
- func RandomPersonalityFromDomains(domains []Domain) (string, error)
- type Data
- type Domain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllAppearancesForDomains ¶
AllAppearancesForDomains returns a string slice of all the appearances from a set of domains
func AllPersonalitiesForDomains ¶
AllPersonalitiesForDomains returns a string slice of all the personalities from a set of domains
func RandomAppearanceFromDomains ¶
RandomAppearanceFromDomains returns a random appearance given a set of domains
func RandomPersonalityFromDomains ¶
RandomPersonalityFromDomains returns a random personality given a set of domains
Types ¶
type Domain ¶
type Domain struct { Name string `json:"name"` AppearanceTraits []string `json:"appearance_traits"` PersonalityTraits []string `json:"personality_traits"` HolyItems []string `json:"holy_items"` HolySymbols []string `json:"holy_symbols"` }
Domain is an area of control
Click to show internal directories.
Click to hide internal directories.