gogame-old/models/solarsystem.go
models/solarsystem.goRaw
1package models
2
3import "gopkg.in/mgo.v2/bson"
4
5type SolarSystem struct {
6 Id bson.ObjectId `json:"id" bson:"_id,omitempty"`
7 Position int64 // position of the solar system in the galaxy, the maximum position is GALAXYSIZE-1
8 Planets []string // array with ids of the planets, if empty is equal to ""
9}