Versions in this module Expand all Collapse all v1 v1.0.1 Nov 25, 2020 Changes in this version + func GetHeroPool() *sync.Pool + func ReleasePoolHero(x interface{}) + type Hero interface + AddExp func(int64) int64 + AddLevel func(int32) int32 + BeforeDelete func() + CalcAtt func() + GetAttManager func() *att.AttManager + GetEquipBar func() *item.EquipBar + GetOptions func() *Options + GetRuneBox func() *rune.RuneBox + func NewHero(opts ...Option) Hero + func NewPoolHero() Hero + type HeroV1 struct + 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 func(*Options) + func Entry(entry *define.HeroEntry) Option + func Exp(exp int64) Option + func Id(id int64) Option + func Level(level int32) Option + func OwnerId(id int64) Option + func OwnerType(tp int32) Option + func TypeId(id int32) Option + type Options struct + Entry *define.HeroEntry + Exp int64 + Id int64 + Level int32 + OwnerId int64 + OwnerType int32 + TypeId int32 + func DefaultOptions() Options