mirror of
https://github.com/arnaucube/gogame.git
synced 2026-02-07 19:46:39 +01:00
add CreatePlanet and put planet in solar system
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package models
|
||||
|
||||
import "gopkg.in/mgo.v2/bson"
|
||||
|
||||
type Planet struct {
|
||||
Id string
|
||||
Size int64 // fields
|
||||
Id bson.ObjectId `json:"id", bson:"_id, omitempty"`
|
||||
Size int64 // fields/slots
|
||||
Name string
|
||||
OwnerId string
|
||||
OwnerId bson.ObjectId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user