Documentation ¶
Index ¶
- type Talent
- type TalentManager
- func (m *TalentManager) AddTalent(id int) error
- func (m *TalentManager) AfterLoad() error
- func (m *TalentManager) GetExpire() *time.Timer
- func (m *TalentManager) GetObjID() int64
- func (m *TalentManager) GetOwnerID() int64
- func (m *TalentManager) GetTalent(id int) *Talent
- func (m *TalentManager) GetTalentList() []*Talent
- func (m *TalentManager) LoadFromDB() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Talent ¶
type Talent struct { Id int `bson:"talent_id" json:"talent_id"` // contains filtered or unexported fields }
type TalentManager ¶
type TalentManager struct { store.StoreObjector Owner define.PluginObj `bson:"-" json:"-"` OwnerId int64 `bson:"_id" json:"_id"` OwnerType int32 `bson:"owner_type" json:"owner_type"` Talents []*Talent `bson:"talents" json:"talents"` sync.RWMutex `bson:"-" json:"-"` }
func NewTalentManager ¶
func NewTalentManager(owner define.PluginObj) *TalentManager
func (*TalentManager) AddTalent ¶
func (m *TalentManager) AddTalent(id int) error
func (*TalentManager) AfterLoad ¶
func (m *TalentManager) AfterLoad() error
func (*TalentManager) GetExpire ¶
func (m *TalentManager) GetExpire() *time.Timer
func (*TalentManager) GetObjID ¶
func (m *TalentManager) GetObjID() int64
func (*TalentManager) GetOwnerID ¶
func (m *TalentManager) GetOwnerID() int64
func (*TalentManager) GetTalent ¶
func (m *TalentManager) GetTalent(id int) *Talent
func (*TalentManager) GetTalentList ¶
func (m *TalentManager) GetTalentList() []*Talent
func (*TalentManager) LoadFromDB ¶
func (m *TalentManager) LoadFromDB() error
Click to show internal directories.
Click to hide internal directories.