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.

22 lines
520 B

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