You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
451 B

  1. package models
  2. import "gopkg.in/mgo.v2/bson"
  3. type BuildingsList struct {
  4. MetalMine int64
  5. CrystalMine int64
  6. DeuteriumMine int64
  7. EnergyMine int64
  8. FusionReactor int64
  9. RoboticsFactory int64
  10. Shipyard int64
  11. RessearchLab int64
  12. }
  13. type Planet struct {
  14. Id bson.ObjectId `json:"id" bson:"_id,omitempty"`
  15. Size int64 // fields/slots
  16. Name string
  17. OwnerId bson.ObjectId
  18. Buildings BuildingsList
  19. }