Documentation
¶
Index ¶
- type Inventory
- func (inv *Inventory) AddToBag(po gamei.CarryingObjectI) error
- func (inv *Inventory) AddToWallet(po gamei.MoneyI) error
- func (inv *Inventory) EquipFromBagByUUID(id string) error
- func (inv *Inventory) GetBagCount() int
- func (inv *Inventory) GetByUUID(poid string) gamei.CarryingObjectI
- func (inv *Inventory) GetEquipList() []gamei.EquipObjI
- func (inv *Inventory) GetEquipSlot() [equipslottype.EquipSlotType_Count]gamei.EquipObjI
- func (inv *Inventory) GetEquipedCount() int
- func (inv *Inventory) GetPotionList() []gamei.PotionI
- func (inv *Inventory) GetScrollList() []gamei.ScrollI
- func (inv *Inventory) GetTotalValue() float64
- func (inv *Inventory) GetTotalWeight() float64
- func (inv *Inventory) GetTypeCount() (int, int, int)
- func (inv *Inventory) GetTypeList() ([]gamei.EquipObjI, []gamei.PotionI, []gamei.ScrollI)
- func (inv *Inventory) GetWalletValue() float64
- func (inv *Inventory) RecycleCarryObjByID(poid string) (float64, error)
- func (inv *Inventory) RemoveByUUID(poid string) gamei.CarryingObjectI
- func (inv *Inventory) String() string
- func (inv *Inventory) SubFromWallet(po gamei.MoneyI) error
- func (inv *Inventory) SumEquipAttackBias() bias.Bias
- func (inv *Inventory) SumEquipDefenceBias() bias.Bias
- func (inv *Inventory) ToPacket_EquipClient() []*c2t_obj.EquipClient
- func (inv *Inventory) ToPacket_InvenInfos() ([]*c2t_obj.EquipClient, []*c2t_obj.EquipClient, []*c2t_obj.PotionClient, ...)
- func (inv *Inventory) TotalCarryObjCount() int
- func (inv *Inventory) UnEquipToBagByUUID(id string) (gamei.EquipObjI, error)
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 New ¶
func New(towerAchieveStat *towerachieve_vector_float64.TowerAchieveVector_float64) *Inventory
func (*Inventory) EquipFromBagByUUID ¶
func (*Inventory) GetBagCount ¶
func (*Inventory) GetEquipList ¶
func (*Inventory) GetEquipSlot ¶
func (inv *Inventory) GetEquipSlot() [equipslottype.EquipSlotType_Count]gamei.EquipObjI
func (*Inventory) GetEquipedCount ¶
func (*Inventory) GetPotionList ¶
func (*Inventory) GetScrollList ¶
func (*Inventory) GetTotalValue ¶
func (*Inventory) GetTotalWeight ¶
func (*Inventory) GetTypeList ¶
func (*Inventory) GetWalletValue ¶
func (*Inventory) RecycleCarryObjByID ¶
func (*Inventory) RemoveByUUID ¶
func (inv *Inventory) RemoveByUUID(poid string) gamei.CarryingObjectI
func (*Inventory) SumEquipAttackBias ¶
func (*Inventory) SumEquipDefenceBias ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.