Documentation ¶
Index ¶
- func GetBladePool() *sync.Pool
- func ReleasePoolBlade(x interface{})
- type Blade
- type BladeV1
- func (b *BladeV1) AddExp(exp int64) int64
- func (b *BladeV1) AddLevel(level int32) int32
- func (b *BladeV1) AfterLoad() error
- func (b *BladeV1) CalcAtt()
- func (b *BladeV1) GetAttManager() *att.AttManager
- func (b *BladeV1) GetID() int64
- func (b *BladeV1) GetLevel() int32
- func (b *BladeV1) GetObjID() int64
- func (b *BladeV1) GetOptions() *Options
- func (b *BladeV1) GetStoreIndex() int64
- func (b *BladeV1) GetTalentManager() *talent.TalentManager
- func (b *BladeV1) GetType() int32
- func (b *BladeV1) LoadFromDB() error
- func (b *BladeV1) SetTalentManager(t *talent.TalentManager)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBladePool ¶
func ReleasePoolBlade ¶
func ReleasePoolBlade(x interface{})
Types ¶
type Blade ¶
type Blade interface { store.StoreObjector define.PluginObj GetOptions() *Options SetTalentManager(*talent.TalentManager) GetTalentManager() *talent.TalentManager GetAttManager() *att.AttManager AddExp(int64) int64 AddLevel(int32) int32 CalcAtt() }
func NewPoolBlade ¶
func NewPoolBlade() Blade
type BladeV1 ¶
type BladeV1 struct { Options `bson:"inline" json:",inline"` TalentManager *talent.TalentManager `bson:"-" json:"-"` AttManager *att.AttManager `bson:"-" json:"-"` utils.WaitGroupWrapper `bson:"-" json:"-"` }
func (*BladeV1) GetAttManager ¶
func (b *BladeV1) GetAttManager() *att.AttManager
func (*BladeV1) GetOptions ¶
func (*BladeV1) GetStoreIndex ¶
func (*BladeV1) GetTalentManager ¶
func (b *BladeV1) GetTalentManager() *talent.TalentManager
func (*BladeV1) LoadFromDB ¶
func (*BladeV1) SetTalentManager ¶
func (b *BladeV1) SetTalentManager(t *talent.TalentManager)
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.BladeEntry `bson:"-" json:"-"` }
blade options
func DefaultOptions ¶
func DefaultOptions() Options
Click to show internal directories.
Click to hide internal directories.