Add a blank atlas to the world

This commit is contained in:
Marc Di Luzio 2020-06-07 13:33:44 +01:00
parent 77be28f913
commit 141827fa57
2 changed files with 31 additions and 0 deletions

View file

@ -14,6 +14,9 @@ type World struct {
// Rovers is a id->data map of all the rovers in the game
Rovers map[uuid.UUID]Rover `json:"rovers"`
// Atlas represends the world map of chunks and tiles
Atlas Atlas `json:"atlas"`
// Mutex to lock around all world operations
worldMutex sync.RWMutex