Documentation
¶
Overview ¶
Package trait provides tools for dealing with descriptive traits of creatures or objects
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Template ¶
type Template struct { Name string `json:"name" db:"name"` PossibleValues []string `json:"possible_values" db:"possible_values"` PossibleDescriptors []string `json:"possible_descriptors" db:"possible_descriptors"` Tags []string `json:"tags" db:"tags"` }
Template is a template for building a trait
func RandomTemplate ¶
RandomTemplate returns a random template from a slice
type Trait ¶
type Trait struct { Name string `json:"name"` // The name of the trait Value string `json:"value"` // The value of the trait Descriptor string `json:"descriptor"` // The pattern by which a trait is described Tags []string `json:"tags"` }
Trait is a trait of something that can be used for description
Click to show internal directories.
Click to hide internal directories.