connector impl
This commit is contained in:
@@ -29,6 +29,12 @@ func newGameOnMap(r Repo, races []string, m generator.Map) (uuid.UUID, error) {
|
||||
if err := r.SaveNewTurn(0, g); err != nil {
|
||||
return uuid.Nil, err
|
||||
}
|
||||
c := NewCache(g)
|
||||
for rep := range c.Report(c.g.Turn, nil, nil) {
|
||||
if err := r.SaveReport(c.g.Turn, rep); err != nil {
|
||||
return uuid.Nil, err
|
||||
}
|
||||
}
|
||||
return g.ID, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user