refactor: float64 types for storage and report

This commit is contained in:
Ilia Denisov
2026-02-02 13:14:57 +02:00
parent 4c14234afb
commit a567229f8a
24 changed files with 264 additions and 253 deletions
+6 -6
View File
@@ -134,16 +134,16 @@ func NewPlanet(num uint, name string, owner uuid.UUID, x, y, size, pop, ind, res
PlanetReport: game.PlanetReport{
UninhabitedPlanet: game.UninhabitedPlanet{
UnidentifiedPlanet: game.UnidentifiedPlanet{
X: x,
Y: y,
X: game.F(x),
Y: game.F(y),
Number: num,
},
Size: size,
Size: game.F(size),
Name: name,
Resources: res,
Resources: game.F(res),
},
Population: pop,
Industry: ind,
Population: game.F(pop),
Industry: game.F(ind),
Production: prod,
},
}