Compare commits
4 Commits
605da815cd
...
0dce90931c
Author | SHA1 | Date | |
---|---|---|---|
0dce90931c | |||
cee68d0d61 | |||
d21061e36d | |||
79886cbfae |
@ -2,19 +2,17 @@ package domain
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"git.gregbrzezinski.com/Skirda/skirdaGoLauncher/sharedutils/skirdasession"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type SkirdaDomain struct {
|
type SkirdaDomain struct {
|
||||||
DomainId string
|
DomainId string
|
||||||
SkirdaGames
|
SkirdaGames
|
||||||
skirdasession.SkirdaSessions
|
// skirdasession.SkirdaSessions
|
||||||
}
|
}
|
||||||
|
|
||||||
func (domain SkirdaDomain) BuildDomain(newGames []SkirdaGame, newSessions []skirdasession.SkirdaSession) {
|
func (domain SkirdaDomain) BuildDomain(newGames []SkirdaGame, newSessions []SkirdaSession) {
|
||||||
domain.AddGames(newGames)
|
domain.AddGames(newGames)
|
||||||
domain.AddSessions(newSessions)
|
// domain.AddSessions(newSessions)
|
||||||
}
|
}
|
||||||
|
|
||||||
type Domains []SkirdaDomain
|
type Domains []SkirdaDomain
|
||||||
@ -42,13 +40,13 @@ func (domains Domains) GetGames() SkirdaGames {
|
|||||||
return allGames
|
return allGames
|
||||||
}
|
}
|
||||||
|
|
||||||
func (domains Domains) GetSessions() skirdasession.SkirdaSessions {
|
// func (domains Domains) GetSessions() SkirdaSessions {
|
||||||
plainSessions := skirdasession.SkirdaSessions{}
|
// plainSessions := SkirdaSessions{}
|
||||||
for _, domain := range domains {
|
// for _, domain := range domains {
|
||||||
plainSessions = append(plainSessions, domain.SkirdaSessions...)
|
// plainSessions = append(plainSessions, SkirdaSessions...)
|
||||||
}
|
// }
|
||||||
return plainSessions
|
// return plainSessions
|
||||||
}
|
// }
|
||||||
|
|
||||||
func (domains Domains) FindDomain(domainId string) (SkirdaDomain, error) {
|
func (domains Domains) FindDomain(domainId string) (SkirdaDomain, error) {
|
||||||
for _, domain := range domains {
|
for _, domain := range domains {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package skirdasession
|
package domain
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
@ -1,4 +1,4 @@
|
|||||||
package minecraftgame
|
package domain
|
||||||
|
|
||||||
type JavaVersion struct {
|
type JavaVersion struct {
|
||||||
VersionNums `json:"version"`
|
VersionNums `json:"version"`
|
||||||
@ -40,10 +40,10 @@ type AssetIndex struct {
|
|||||||
Artifact
|
Artifact
|
||||||
}
|
}
|
||||||
|
|
||||||
type Argument struct {
|
// type Argument struct {
|
||||||
Value string `json:"value"`
|
// Value string `json:"value"`
|
||||||
Rules []Rule `json:"rules"`
|
// Rules []Rule `json:"rules"`
|
||||||
}
|
// }
|
||||||
|
|
||||||
type Rule struct {
|
type Rule struct {
|
||||||
Action RuleAct `json:"action" mapstructure:"action"`
|
Action RuleAct `json:"action" mapstructure:"action"`
|
||||||
@ -103,3 +103,6 @@ type ModArtifact struct {
|
|||||||
Name string
|
Name string
|
||||||
Version string
|
Version string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type VersionMeta struct {
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user