lobby

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRecycleItems

func GetRecycleItems(recycleItems *map[string]map[int]*RecycleItem, client *player.Player, gameBase *base.Base) ([]*inventory.Slot, []*inventory.Slot)

func OutBase

func OutBase(user *player.Player) error

func ParseItems

func ParseItems(itemsPool *[]*inventory.Slot, percent int, resourcer Resourcer, countItems int)

func Recycle

func Recycle(user *player.Player, recycleItems *map[string]map[int]*RecycleItem, gameBase *base.Base) error

Types

type RecycleItem

type RecycleItem struct {
	Slot       *inventory.Slot `json:"slot"`
	Recycled   bool            `json:"recycled"` // если false то итем не плавится
	TaxPercent int             `json:"tax_percent"`
	Source     string          `json:"source"`
}

type Resourcer

type Resourcer interface {
	GetEnrichedThorium() int
	GetIron() int
	GetCopper() int
	GetTitanium() int
	GetSilicon() int
	GetPlastic() int
	GetSteel() int
	GetWire() int
	GetElectronics() int
	GetWires() int
	GetGear() int
	GetTitaniumPlate() int
	GetBatteries() int
	GetArmorItems() int
}

я хз как еще это нормально назвать)

Jump to

Keyboard shortcuts

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