game stats shows planes and population

This commit is contained in:
Ilia Denisov
2026-04-26 21:12:51 +02:00
parent fe829285a6
commit b4591cabd4
11 changed files with 84 additions and 22 deletions
+2 -2
View File
@@ -9,14 +9,14 @@ import (
)
func InitHandler(c *gin.Context, executor CommandExecutor) {
var init rest.Init
var init rest.InitRequest
if errorResponse(c, c.ShouldBindJSON(&init)) {
return
}
races := make([]string, len(init.Races))
for i := range init.Races {
races[i] = init.Races[i].Name
races[i] = init.Races[i].RaceName
}
s, err := executor.GenerateGame(races)