Skip to content

Commit fddd15d

Browse files
committed
refactor(domain): group feature models
1 parent 44e03ff commit fddd15d

3 files changed

Lines changed: 17 additions & 16 deletions

File tree

internal/autobuild/domain/champion_selection.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
package domain
22

3+
type (
4+
ChampionRef struct {
5+
ID int
6+
Name string
7+
}
8+
ChampSelectState struct {
9+
SessionKey string
10+
EnemyChampions []ChampionRef
11+
}
12+
)
13+
314
const MaxMatchupChampionIDs = 5
415

516
func MatchupChampionIDsForRoster(requested []int, roster []ChampionRef, limit int) []int {

internal/autobuild/domain/lcu.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ type ApplyItemSetBlock struct {
1717
ItemIDs []int
1818
}
1919

20-
type RunePage struct {
21-
PrimaryStyleID int
22-
SubStyleID int
23-
SelectedPerkIDs []int
24-
}
25-
2620
type ApplyRunePageRequest struct {
2721
ChampionID int
2822
ChampionName string
@@ -48,16 +42,6 @@ type DetectedSelection struct {
4842
EnemyChampions []ChampionRef
4943
}
5044

51-
type ChampionRef struct {
52-
ID int
53-
Name string
54-
}
55-
56-
type ChampSelectState struct {
57-
SessionKey string
58-
EnemyChampions []ChampionRef
59-
}
60-
6145
type LCUEvent struct {
6246
EventType string
6347
URI string

internal/autobuild/domain/runes.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
package domain
22

3+
type RunePage struct {
4+
PrimaryStyleID int
5+
SubStyleID int
6+
SelectedPerkIDs []int
7+
}
8+
39
const (
410
RuneStylePrecision = 8000
511
RuneStyleDomination = 8100

0 commit comments

Comments
 (0)