Documentation ¶
Index ¶
Constants ¶
View Source
const ( StockType = "stock" CryptocurrencyType = "cryptocurrency" BuildingType = "building" FactoryType = "factory" )
groups
Variables ¶
View Source
var ( //BasePrices prices BasePrices = map[string]float64{ StockType: 10.0, CryptocurrencyType: 20.0, BuildingType: 30.0, FactoryType: 40.0, } //BaseRisks risks BaseRisks = map[string]float64{ StockType: 1.0, CryptocurrencyType: 1.5, BuildingType: 2.0, FactoryType: 2.5, } // BaseProfits profits BaseProfits = map[string]float64{ StockType: 0.1, CryptocurrencyType: 1.0, BuildingType: 1.5, FactoryType: 2.0, } //Types all types Types = []string{ StockType, BuildingType, CryptocurrencyType, FactoryType, } )
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { Id string `json:"id"` Name string `json:"name"` Comment string `json:"comment"` ImgUrl string `json:"imgUrl"` Type string `json:"type"` Price float64 `json:"price"` Profit float64 `json:"profit"` Risk float64 `json:"risk"` }
Asset asset data structure
type Auction ¶
type Auction struct { Id string `json:"id"` StartTime time.Time `json:"startTime"` EndTime time.Time `json:"endTime"` AssetId string `json:"assetId"` Bid float64 `json:"bid"` Step float64 `json:"step"` WinnerId string `json:"winnerId"` }
Auction auction data structure
type Balance ¶
Balance - сруктура для предоставлении информации об общем балансе игрока. Id - Id discord игрока. Account - личный счет игрока.
type Bid ¶
type Bid struct { UserId string `json:"userId"` Bid float64 `json:"bid"` Time time.Time `json:"time"` }
Bid struct
Source Files ¶
Click to show internal directories.
Click to hide internal directories.