user_item_module

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemModel

type ItemModel struct {
	module_base.ModuleBase
	// contains filtered or unexported fields
}

func GetItemModel

func GetItemModel() (*ItemModel, error)

func NewItemModel

func NewItemModel() *ItemModel

func (*ItemModel) ClearUserCache

func (p *ItemModel) ClearUserCache(userId int64)

func (*ItemModel) GetItemCdList

func (p *ItemModel) GetItemCdList(userId int64) (*data_types.UserItemCD, error)

func (*ItemModel) GetPlayerItems

func (p *ItemModel) GetPlayerItems(userId int64) (*data_types.PlayerItems, error)

func (*ItemModel) ItemByCid

func (p *ItemModel) ItemByCid(userId int64, cid int32) (*data_types.Item, error)

func (*ItemModel) ItemById

func (p *ItemModel) ItemById(userId int64, nftId string) (*data_types.Item, error)

func (*ItemModel) LoadAvatar

func (p *ItemModel) LoadAvatar(userId int64, maxMasterLv uint32, itemId string, isAppearance bool) error

穿装备

func (*ItemModel) LoadItems

func (p *ItemModel) LoadItems(userId int64) (items []*data_types.Item, err error)

func (*ItemModel) OnInit

func (p *ItemModel) OnInit() error

func (*ItemModel) OnLeaveGame

func (p *ItemModel) OnLeaveGame(userId int64)

func (*ItemModel) OnTick

func (p *ItemModel) OnTick(utc time.Time)

func (*ItemModel) TakeNftById

func (p *ItemModel) TakeNftById(userId int64, nftId string, num int32) error

func (*ItemModel) TakeNftByItemCid

func (p *ItemModel) TakeNftByItemCid(userId int64, itemCid, num int32) error

func (*ItemModel) UnloadAvatar

func (p *ItemModel) UnloadAvatar(userId int64, itemId string) error

卸装备

func (*ItemModel) UpdateItemUseState

func (p *ItemModel) UpdateItemUseState(
	userId int64, itemId string, using bool, pos int32, broadcast bool,
) (err error)

func (*ItemModel) UpdatePlayerNFTs

func (p *ItemModel) UpdatePlayerNFTs(userId int64, nfts []message.NFT)

func (*ItemModel) UseItem

func (p *ItemModel) UseItem(userId int64, maxMasterLv uint32, itemId string, num int32, args string) error

func (*ItemModel) UsingAvatars

func (p *ItemModel) UsingAvatars(userId int64) (avatars []*data_types.Item, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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