Documentation
¶
Overview ¶
Package lolbuild provides functions for loading builds from different sources
Index ¶
- type AssetData
- type Build
- type BuildCollection
- type BuildSource
- type ChampionData
- type ChampionName
- type Item
- type ItemGroup
- type Loader
- func (l *Loader) GetChampionData(championId int, language string) *ChampionData
- func (l *Loader) GetChampionName(id int, language string) ChampionName
- func (l *Loader) GetRuneTree(name string, language string) RuneTree
- func (l *Loader) GetSources() []BuildSource
- func (l *Loader) LoadBuilds(championName string, sources []string, role, language string) []BuildCollection
- type Passive
- type RawRuneTree
- type Rune
- type RuneTree
- type RuneTrees
- type Spell
- type SpellImage
- type SummonerSpell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct {
Name string `json:"name"`
Winrate float64 `json:"winrate"`
Matches int `json:"matches"`
Primary Rune `json:"primary"`
Secondary Rune `json:"secondary"`
SelectedPerks []Rune `json:"selectedPerks"`
SummonerSpells []SummonerSpell `json:"summonerSpells"`
ItemGroups []ItemGroup `json:"itemGroups"`
CoreItem Item `json:"coreItem"`
SkillMaxOrder []int `json:"skillMaxOrder"`
SkillOrder []int `json:"skillOrder"`
}
Build is a build structure ready to be used in the app
type BuildCollection ¶
BuildCollection is a collection of builds from a single source
type BuildSource ¶ added in v0.3.0
type ChampionData ¶ added in v0.4.0
type ChampionName ¶ added in v0.3.0
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (*Loader) GetChampionData ¶ added in v0.4.0
func (l *Loader) GetChampionData(championId int, language string) *ChampionData
GetChampionData loads champion data from data dragon
func (*Loader) GetChampionName ¶ added in v0.3.0
func (l *Loader) GetChampionName(id int, language string) ChampionName
func (*Loader) GetRuneTree ¶
GetRuneTree returns a rune tree by its name
func (*Loader) GetSources ¶ added in v0.3.0
func (l *Loader) GetSources() []BuildSource
func (*Loader) LoadBuilds ¶
func (l *Loader) LoadBuilds(championName string, sources []string, role, language string) []BuildCollection
LoadBuilds loads builds for a given champion and role from specified sources
type Passive ¶ added in v0.4.0
type Passive struct {
Name string `json:"name"`
Image SpellImage `json:"image"`
}
type RawRuneTree ¶
type RawRuneTree struct {
ID int `json:"id"`
Key string `json:"key"`
Icon string `json:"icon"`
Name string `json:"name"`
Slots []struct {
Runes []struct {
ID int `json:"id"`
Key string `json:"key"`
Icon string `json:"icon"`
Name string `json:"name"`
ShortDesc string `json:"shortDesc"`
LongDesc string `json:"longDesc"`
} `json:"runes"`
} `json:"slots"`
}
RawRuneTree is a raw rune tree structure from data dragon
type RuneTree ¶
type RuneTree struct {
Name string `json:"name"`
Keystones []Rune `json:"keystones"`
Perks []Rune `json:"perks"`
IconUrl string `json:"iconUrl"`
}
RuneTree is a rune tree structure ready to be used in the app
type Spell ¶ added in v0.4.0
type Spell struct {
Name string `json:"name"`
Image SpellImage `json:"image"`
}
type SpellImage ¶ added in v0.4.0
type SpellImage struct {
Full string `json:"full"`
}
type SummonerSpell ¶
Click to show internal directories.
Click to hide internal directories.