Documentation ¶
Index ¶
- type ItemModel
- func (p *ItemModel) ClearUserCache(userId int64)
- func (p *ItemModel) GetItemCdList(userId int64) (*data_types.UserItemCD, error)
- func (p *ItemModel) GetPlayerItems(userId int64) (*data_types.PlayerItems, error)
- func (p *ItemModel) ItemByCid(userId int64, cid int32) (*data_types.Item, error)
- func (p *ItemModel) ItemById(userId int64, nftId string) (*data_types.Item, error)
- func (p *ItemModel) LoadAvatar(userId int64, maxMasterLv uint32, itemId string, isAppearance bool) error
- func (p *ItemModel) LoadItems(userId int64) (items []*data_types.Item, err error)
- func (p *ItemModel) OnInit() error
- func (p *ItemModel) OnLeaveGame(userId int64)
- func (p *ItemModel) OnTick(utc time.Time)
- func (p *ItemModel) TakeNftById(userId int64, nftId string, num int32) error
- func (p *ItemModel) TakeNftByItemCid(userId int64, itemCid, num int32) error
- func (p *ItemModel) UnloadAvatar(userId int64, itemId string) error
- func (p *ItemModel) UpdateItemUseState(userId int64, itemId string, using bool, pos int32, broadcast bool) (err error)
- func (p *ItemModel) UpdatePlayerNFTs(userId int64, nfts []message.NFT)
- func (p *ItemModel) UseItem(userId int64, maxMasterLv uint32, itemId string, num int32, args string) error
- func (p *ItemModel) UsingAvatars(userId int64) (avatars []*data_types.Item, err error)
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 NewItemModel ¶
func NewItemModel() *ItemModel
func (*ItemModel) ClearUserCache ¶
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) 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) OnLeaveGame ¶
func (*ItemModel) TakeNftById ¶
func (*ItemModel) TakeNftByItemCid ¶
func (*ItemModel) UnloadAvatar ¶
卸装备
func (*ItemModel) UpdateItemUseState ¶
func (*ItemModel) UpdatePlayerNFTs ¶
func (*ItemModel) UsingAvatars ¶
func (p *ItemModel) UsingAvatars(userId int64) (avatars []*data_types.Item, err error)
Click to show internal directories.
Click to hide internal directories.