Documentation ¶
Index ¶
- func GetHeroPool() *sync.Pool
- func ReleasePoolHero(x interface{})
- type Hero
- type HeroV1
- func (h *HeroV1) AddExp(exp int64) int64
- func (h *HeroV1) AddLevel(level int32) int32
- func (h *HeroV1) AfterLoad() error
- func (h *HeroV1) BeforeDelete()
- func (h *HeroV1) CalcAtt()
- func (h *HeroV1) GetAttManager() *att.AttManager
- func (h *HeroV1) GetEquipBar() *item.EquipBar
- func (h *HeroV1) GetID() int64
- func (h *HeroV1) GetLevel() int32
- func (h *HeroV1) GetObjID() int64
- func (h *HeroV1) GetOptions() *Options
- func (h *HeroV1) GetRuneBox() *rune.RuneBox
- func (h *HeroV1) GetStoreIndex() int64
- func (h *HeroV1) GetType() int32
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHeroPool ¶
func ReleasePoolHero ¶
func ReleasePoolHero(x interface{})
Types ¶
type Hero ¶
type Hero interface { store.StoreObjector GetOptions() *Options GetEquipBar() *item.EquipBar GetAttManager() *att.AttManager GetRuneBox() *rune.RuneBox AddExp(int64) int64 AddLevel(int32) int32 BeforeDelete() CalcAtt() }
func NewPoolHero ¶
func NewPoolHero() Hero
type HeroV1 ¶
type HeroV1 struct { Options `bson:"inline" json:",inline"` // contains filtered or unexported fields }
func (*HeroV1) BeforeDelete ¶
func (h *HeroV1) BeforeDelete()
func (*HeroV1) GetAttManager ¶
func (h *HeroV1) GetAttManager() *att.AttManager
func (*HeroV1) GetEquipBar ¶
func (*HeroV1) GetOptions ¶
func (*HeroV1) GetRuneBox ¶
func (*HeroV1) GetStoreIndex ¶
type Options ¶
type Options struct { Id int64 `bson:"_id" json:"_id"` OwnerId int64 `bson:"owner_id" json:"owner_id"` OwnerType int32 `bson:"owner_type" json:"owner_type"` TypeId int `bson:"type_id" json:"type_id"` Exp int64 `bson:"exp" json:"exp"` Level int32 `bson:"level" json:"level"` Entry *auto.HeroEntry `bson:"-" json:"-"` }
hero options
func DefaultOptions ¶
func DefaultOptions() Options
Click to show internal directories.
Click to hide internal directories.