Convert to 32-bit to save space in the serialization

This commit is contained in:
Fraser Graham
2013-10-19 00:00:51 -07:00
parent c074397c1f
commit f9b18eb253
6 changed files with 47 additions and 46 deletions
+3 -3
View File
@@ -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,