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