started tile serialization

This commit is contained in:
2019-11-10 19:52:01 +03:00
parent 3251d00dac
commit b734e538f4
3 changed files with 99 additions and 18 deletions

View File

@ -0,0 +1,18 @@
package alchemyst_go
import (
"encoding/json"
"fmt"
"lab.zaar.be/thefish/alchemyst-go/engine/gamemap"
"testing"
)
func TestSerializeTile (t *testing.T) {
wt := gamemap.NewWaterTile()
txt, err := json.Marshal(wt)
if err != nil {
t.Log(err)
t.Fail()
}
fmt.Printf("%s", txt)
}