Documentation ¶
Index ¶
- Variables
- type Assortment
- type OrdersPool
- func (o *OrdersPool) AddNewOrder(newOrder order.Order)
- func (o *OrdersPool) Buy(orderID, count int, user *player.Player) error
- func (o *OrdersPool) Cancel(orderID int, user *player.Player) error
- func (o *OrdersPool) GetOrder(id int) (bool, *order.Order, *sync.Mutex)
- func (o *OrdersPool) GetOrders() map[int]*order.Order
- func (o *OrdersPool) GetUserOrders(userID int) map[int]*order.Order
- func (o *OrdersPool) PlaceNewBuyOrder(itemId, price, quantity, minBuyOut, expires int, itemType string, ...) error
- func (o *OrdersPool) PlaceNewSellOrder(storageSlot, price, quantity, minBuyOut, expires int, user *player.Player) error
- func (o *OrdersPool) Sell(orderID, count int, user *player.Player) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Orders = NewOrdersPool()
Functions ¶
This section is empty.
Types ¶
type Assortment ¶
type Assortment struct { Bodies map[int]detail.Body `json:"bodies"` Weapons map[int]detail.Weapon `json:"weapons"` Ammo map[int]ammo.Ammo `json:"ammo"` Equips map[int]equip.Equip `json:"equips"` Resources map[int]resource.Resource `json:"resources"` Recycles map[int]resource.RecycledResource `json:"recycles"` Details map[int]resource.CraftDetail `json:"details"` Blueprints map[int]blueprints.Blueprint `json:"blueprints"` Boxes map[int]box.Box `json:"boxes"` Trash map[int]trashItem.TrashItem `json:"trash"` }
func GetAssortment ¶
func GetAssortment() *Assortment
type OrdersPool ¶
type OrdersPool struct {
// contains filtered or unexported fields
}
func NewOrdersPool ¶
func NewOrdersPool() *OrdersPool
func (*OrdersPool) AddNewOrder ¶
func (o *OrdersPool) AddNewOrder(newOrder order.Order)
func (*OrdersPool) GetUserOrders ¶
func (o *OrdersPool) GetUserOrders(userID int) map[int]*order.Order
func (*OrdersPool) PlaceNewBuyOrder ¶
func (*OrdersPool) PlaceNewSellOrder ¶
func (o *OrdersPool) PlaceNewSellOrder(storageSlot, price, quantity, minBuyOut, expires int, user *player.Player) error
Click to show internal directories.
Click to hide internal directories.