package engine import ( engine "dev.euph.git/snoweuph/game-engine/pkg/engine/ports" ) type Game struct { packages []engine.Package } func NewGame(packages ...engine.Package) (*Game, error) { for _, p := range packages{ err := p.Load() if err != nil{ return nil, err } } return &Game{ packages: packages, }, nil } func (g *Game) Terminate(){ for _, p := range g.packages{ p.Terminate() } }