refactor: float64 types for storage and report
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user