Move the Atlas code into it's own package

This commit is contained in:
Marc Di Luzio 2020-06-11 20:42:59 +01:00
parent 8cd7b06c0c
commit faaa556ad0
8 changed files with 44 additions and 35 deletions

View file

@ -3,6 +3,7 @@ package rove
import (
"path"
"github.com/mdiluz/rove/pkg/atlas"
"github.com/mdiluz/rove/pkg/game"
)
@ -78,8 +79,8 @@ type RadarResponse struct {
Error string `json:"error,omitempty"`
// The set of positions for nearby non-empty tiles
Range int `json:"range"`
Tiles []game.Tile `json:"tiles"`
Range int `json:"range"`
Tiles []atlas.Tile `json:"tiles"`
}
// ================