Multiple changes
- backend: add summoner spells - backend: add build variants - backend: builds are now storing full tree with runes (keystones) - backend: build trees are split on starter items and merged on runes - frontend: computing core tree now - frontend: variant selectors
This commit is contained in:
@@ -9,17 +9,25 @@ declare global {
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents champion build information
|
||||
* Represents a complete build with runes and items
|
||||
*/
|
||||
interface Builds {
|
||||
start: Array<{ count: number; data: number }>
|
||||
tree: ItemTree
|
||||
interface Build {
|
||||
runeKeystone: number
|
||||
runes: Rune[]
|
||||
items: ItemTree
|
||||
bootsFirst: number
|
||||
count: number
|
||||
boots: Array<{ count: number; data: number }>
|
||||
lateGame: Array<{ count: number; data: number }>
|
||||
suppItems?: Array<{ count: number; data: number }>
|
||||
suppItems: Array<{ count: number; data: number }>
|
||||
startItems: Array<{ count: number; data: number }>
|
||||
pickrate: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents champion build information (array of builds)
|
||||
*/
|
||||
type Builds = Array<Build>
|
||||
|
||||
/**
|
||||
* Represents a rune configuration
|
||||
*/
|
||||
@@ -52,8 +60,8 @@ declare global {
|
||||
losingMatches: number
|
||||
winrate: number
|
||||
pickrate: number
|
||||
runes?: Rune[]
|
||||
builds?: Builds
|
||||
summonerSpells: Array<{ id: number; count: number; pickrate: number }>
|
||||
matchups?: MatchupData[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user