Documentation
¶
Index ¶
- Variables
- func GetEmbeddableImage(cardType string, imageType string, format string) (io.Reader, error)
- func GetImageURI(cardType string, imageType string, format string) (string, error)
- func MustGetImageURI(cardType string, imageType string, format string) string
- func ParseCards(location string)
- type Card
- type CardType
Constants ¶
This section is empty.
Variables ¶
View Source
var CardFS = rwbyadv3.GetCardFS()
View Source
var Cards map[string]*Card
Functions ¶
func GetEmbeddableImage ¶
func GetImageURI ¶
func MustGetImageURI ¶
func ParseCards ¶
func ParseCards(location string)
Types ¶
type Card ¶
type Card struct { ID string `yaml:"id"` Name string `yaml:"name"` Type CardType `yaml:"type"` Team string `yaml:"team"` Categories []string `yaml:"categories"` BaseStats struct { Damage int `yaml:"damage"` Healing int `yaml:"healing"` Armor int `yaml:"armor"` Health int `yaml:"health"` Speed int `yaml:"speed"` } `yaml:"base_stats"` // For variants Parent *Card `yaml:"-"` // Unused after parsing Variants []*Card `yaml:"variants"` }
Click to show internal directories.
Click to hide internal directories.