inventory

package
v0.0.0-...-e449b39 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inventory

type Inventory struct {
	// contains filtered or unexported fields
}

equip, bag is exclusive

func (*Inventory) AddToBag

func (inv *Inventory) AddToBag(po gamei.CarryingObjectI) error

func (*Inventory) AddToWallet

func (inv *Inventory) AddToWallet(po gamei.MoneyI) error

func (*Inventory) EquipFromBagByUUID

func (inv *Inventory) EquipFromBagByUUID(id string) error

func (*Inventory) GetBagCount

func (inv *Inventory) GetBagCount() int

func (*Inventory) GetByUUID

func (inv *Inventory) GetByUUID(poid string) gamei.CarryingObjectI

func (*Inventory) GetEquipList

func (inv *Inventory) GetEquipList() []gamei.EquipObjI

func (*Inventory) GetEquipSlot

func (*Inventory) GetEquipedCount

func (inv *Inventory) GetEquipedCount() int

func (*Inventory) GetPotionList

func (inv *Inventory) GetPotionList() []gamei.PotionI

func (*Inventory) GetScrollList

func (inv *Inventory) GetScrollList() []gamei.ScrollI

func (*Inventory) GetTotalValue

func (inv *Inventory) GetTotalValue() float64

func (*Inventory) GetTotalWeight

func (inv *Inventory) GetTotalWeight() float64

func (*Inventory) GetTypeCount

func (inv *Inventory) GetTypeCount() (int, int, int)

func (*Inventory) GetTypeList

func (inv *Inventory) GetTypeList() (
	[]gamei.EquipObjI, []gamei.PotionI, []gamei.ScrollI)

func (*Inventory) GetWalletValue

func (inv *Inventory) GetWalletValue() float64

func (*Inventory) RecycleCarryObjByID

func (inv *Inventory) RecycleCarryObjByID(poid string) (float64, error)

func (*Inventory) RemoveByUUID

func (inv *Inventory) RemoveByUUID(poid string) gamei.CarryingObjectI

func (*Inventory) String

func (inv *Inventory) String() string

func (*Inventory) SubFromWallet

func (inv *Inventory) SubFromWallet(po gamei.MoneyI) error

func (*Inventory) SumEquipAttackBias

func (inv *Inventory) SumEquipAttackBias() bias.Bias

func (*Inventory) SumEquipDefenceBias

func (inv *Inventory) SumEquipDefenceBias() bias.Bias

func (*Inventory) ToPacket_EquipClient

func (inv *Inventory) ToPacket_EquipClient() []*c2t_obj.EquipClient

func (*Inventory) ToPacket_InvenInfos

func (inv *Inventory) ToPacket_InvenInfos() (
	[]*c2t_obj.EquipClient,
	[]*c2t_obj.EquipClient,
	[]*c2t_obj.PotionClient,
	[]*c2t_obj.ScrollClient,
	int,
)

func (*Inventory) TotalCarryObjCount

func (inv *Inventory) TotalCarryObjCount() int

func (*Inventory) UnEquipToBagByUUID

func (inv *Inventory) UnEquipToBagByUUID(id string) (gamei.EquipObjI, error)

Jump to

Keyboard shortcuts

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