market

package
v0.0.0-...-54eea7a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewUser

func AddNewUser(ws *websocket.Conn, login string, id int)

func OrderSender

func OrderSender()

func Reader

func Reader(ws *websocket.Conn, user *player.Player)

Types

type Message

type Message struct {
	Event       string               `json:"event"`
	Orders      map[int]*order.Order `json:"orders"`
	MyOrders    map[int]*order.Order `json:"my_orders"`
	Assortment  *market.Assortment   `json:"assortment"`
	OrderID     int                  `json:"order_id"`
	StorageSlot int                  `json:"storage_slot"`
	Price       int                  `json:"price"`
	Quantity    int                  `json:"quantity"`
	MinBuyOut   int                  `json:"min_buy_out"`
	Expires     int                  `json:"expires"`
	Error       string               `json:"error"`
	Credits     int                  `json:"credits"`
	ItemID      int                  `json:"item_id"`
	ItemType    string               `json:"item_type"`
	UserID      int                  `json:"user_id"`
	BaseName    string               `json:"base_name"`
	Count       int                  `json:"count"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL