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