Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MonsterClient ¶
type MonsterClient interface { GetList() (*api.ListResponse, error) QueryList(query map[string]string) (*api.ListResponse, error) GetByIndex(index string) (*MonsterDetail, error) }
func NewClient ¶
func NewClient(basicsProvider api.BasicsProvider) MonsterClient
type MonsterDetail ¶
type MonsterDetail struct { Index string `json:"index"` Name string `json:"name"` Url string `json:"url"` Size string `json:"size"` Type string `json:"type"` Subtype string `json:"subtype"` Alignment string `json:"alignment"` ArmorClass int `json:"armor_class"` HitPoints int `json:"hit_points"` HitDice string `json:"hit_dice"` Speed Speed `json:"speed"` Strength int `json:"strength"` Dexterity int `json:"dexterity"` Constitution int `json:"constitution"` Intelligence int `json:"intelligence"` Wisdom int `json:"wisdom"` Charisma int `json:"charisma"` Proficiencies []ProficiencyValue `json:"proficiencies"` DamageVulnerabilities []string `json:"damage_vulnerabilities"` DamageResistances []string `json:"damage_resistances"` DamageImmunities []string `json:"damage_immunities"` ConditionImmunities []string `json:"condition_immunities"` Senses Sense `json:"senses"` Languages string `json:"languages"` ChallengeRating int `json:"challenge_rating"` SpecialAbilities []SpecialAbility `json:"special_abilities"` Actions []Action `json:"actions"` LegendaryActions []Action `json:"legendary_actions"` }
type ProficiencyValue ¶
type SpecialAbility ¶
Click to show internal directories.
Click to hide internal directories.