started tile serialization
This commit is contained in:
18
color_serialization_test.go
Normal file
18
color_serialization_test.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user