Documentation ¶
Index ¶
- func GetItemPool() *sync.Pool
- func ReleasePoolItem(x interface{})
- type EquipBar
- type Item
- type ItemV1
- func (i *ItemV1) AfterLoad() error
- func (i *ItemV1) CalcAtt()
- func (i *ItemV1) Entry() *auto.ItemEntry
- func (i *ItemV1) EquipEnchantEntry() *auto.EquipEnchantEntry
- func (i *ItemV1) GetAttManager() *att.AttManager
- func (i *ItemV1) GetEquipObj() int64
- func (i *ItemV1) GetID() int64
- func (i *ItemV1) GetObjID() int64
- func (i *ItemV1) GetOptions() *Options
- func (i *ItemV1) GetOwnerID() int64
- func (i *ItemV1) GetStoreIndex() int64
- func (i *ItemV1) GetTypeID() int
- func (i *ItemV1) SetEquipObj(obj int64)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetItemPool ¶
func ReleasePoolItem ¶
func ReleasePoolItem(x interface{})
Types ¶
type EquipBar ¶
func NewEquipBar ¶
func (*EquipBar) GetEquipByPos ¶
func (*EquipBar) PutonEquip ¶
func (*EquipBar) TakeoffEquip ¶
type Item ¶
type Item interface { store.StoreObjector GetOptions() *Options Entry() *auto.ItemEntry EquipEnchantEntry() *auto.EquipEnchantEntry GetAttManager() *att.AttManager GetEquipObj() int64 SetEquipObj(int64) CalcAtt() }
func NewPoolItem ¶
func NewPoolItem() Item
type ItemV1 ¶
type ItemV1 struct { Options `bson:"inline" json:",inline"` // contains filtered or unexported fields }
func (*ItemV1) EquipEnchantEntry ¶
func (i *ItemV1) EquipEnchantEntry() *auto.EquipEnchantEntry
func (*ItemV1) GetAttManager ¶
func (i *ItemV1) GetAttManager() *att.AttManager
func (*ItemV1) GetEquipObj ¶
func (*ItemV1) GetOptions ¶
func (*ItemV1) GetOwnerID ¶
func (*ItemV1) GetStoreIndex ¶
func (*ItemV1) SetEquipObj ¶
type Option ¶
type Option func(*Options)
func EquipEnchantEntry ¶
func EquipEnchantEntry(entry *auto.EquipEnchantEntry) Option
type Options ¶
type Options struct { Id int64 `bson:"_id" json:"_id"` OwnerId int64 `bson:"owner_id" json:"owner_id"` TypeId int `bson:"type_id" json:"type_id"` Num int `bson:"num" json:"num"` EquipObj int64 `bson:"equip_obj" json:"equip_obj"` Entry *auto.ItemEntry `bson:"-" json:"-"` EquipEnchantEntry *auto.EquipEnchantEntry `bson:"-" json:"-"` }
item options
func DefaultOptions ¶
func DefaultOptions() Options
Click to show internal directories.
Click to hide internal directories.