Documentation ¶
Index ¶
- type Service
- func (srv Service) CreatePlanet(userId bson.ObjectId) (*models.SolarSystem, *models.Planet, error)
- func (srv Service) GetPlanet(user *models.User, planetid bson.ObjectId) (*models.Planet, error)
- func (srv Service) PutPlanetInSolarSystem(position int64, planet *models.Planet) (*models.SolarSystem, error)
- func (srv Service) UpgradeBuilding(user *models.User, planetid bson.ObjectId, building string) (*models.Planet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) CreatePlanet ¶
CreatePlanet is used when a user conquers a planet
func (Service) PutPlanetInSolarSystem ¶
Click to show internal directories.
Click to hide internal directories.