20 lines
509 B
Go
20 lines
509 B
Go
package game
|
|
|
|
import (
|
|
"github.com/iliadenisov/galaxy/internal/controller"
|
|
"github.com/iliadenisov/galaxy/internal/model/game"
|
|
)
|
|
|
|
func JoinEqualGroups(configure func(*controller.Param), race string) (err error) {
|
|
err = control(configure, func(c *controller.Controller) error {
|
|
return c.ExecuteCommand(func(r controller.Repo, g *game.Game) error {
|
|
return joinEqualGroups(c, race)
|
|
})
|
|
})
|
|
return
|
|
}
|
|
|
|
func joinEqualGroups(c *controller.Controller, race string) error {
|
|
return c.JoinEqualGroups(race)
|
|
}
|