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.

35 lines
787 B

  1. package models
  2. import (
  3. "time"
  4. "gopkg.in/mgo.v2/bson"
  5. )
  6. type Process struct {
  7. // if Title == "", is not active, and can build other buildings/research
  8. Title string // building name / research name + level
  9. Building string
  10. Ends time.Time
  11. }
  12. type Planet struct {
  13. Id bson.ObjectId `json:"id" bson:"_id,omitempty"`
  14. Size int64 // fields/slots
  15. Name string
  16. OwnerId bson.ObjectId
  17. Buildings map[string]int64
  18. CurrentBuild Process
  19. Research Process
  20. /*
  21. Buildings types (in the map, all in lowcase):
  22. MetalMine int64
  23. CrystalMine int64
  24. DeuteriumMine int64
  25. EnergyMine int64
  26. FusionReactor int64
  27. RoboticsFactory int64
  28. Shipyard int64
  29. RessearchLab int64
  30. */
  31. }