Convert to 32-bit to save space in the serialization
This commit is contained in:
+3
-3
@@ -45,8 +45,8 @@ type ClientConfig struct {
|
||||
}
|
||||
|
||||
type BoardSize struct {
|
||||
Width float64 `json:"width"`
|
||||
Height float64 `json:"height"`
|
||||
Width float32 `json:"width"`
|
||||
Height float32 `json:"height"`
|
||||
}
|
||||
|
||||
type GameParam struct {
|
||||
@@ -55,7 +55,7 @@ type GameParam struct {
|
||||
}
|
||||
|
||||
// > [OK | FULL | NOT AUTH], board size, game params
|
||||
func NewGameParam(w, h float64) *GameParam {
|
||||
func NewGameParam(w, h float32) *GameParam {
|
||||
return &GameParam{
|
||||
BoardSize: BoardSize{
|
||||
Width: w,
|
||||
|
||||
Reference in New Issue
Block a user