mirror of
https://github.com/arnaucube/gogame.git
synced 2026-02-07 11:36:40 +01:00
add some User functions, move api tests from js to python
This commit is contained in:
@@ -2,11 +2,8 @@ package models
|
||||
|
||||
import "gopkg.in/mgo.v2/bson"
|
||||
|
||||
const GALAXYSIZE = 50
|
||||
const SOLARSYSTEMSIZE = 15
|
||||
|
||||
type SolarSystem struct {
|
||||
Id bson.ObjectId `json:"id", bson:"_id, omitempty"`
|
||||
Position int64 // position of the solar system in the galaxy, the maximum position is GALAXYSIZE-1
|
||||
Planets []bson.ObjectId // array with ids of the planets, if empty is equal to ""
|
||||
Id bson.ObjectId `json:"id" bson:"_id,omitempty"`
|
||||
Position int64 // position of the solar system in the galaxy, the maximum position is GALAXYSIZE-1
|
||||
Planets []string // array with ids of the planets, if empty is equal to ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user