Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Talent ¶
type Talent struct { ID int32 `json:"id" bson:"talent_id"` // contains filtered or unexported fields }
type TalentManager ¶
type TalentManager struct { Owner define.PluginObj `gorm:"-" bson:"-"` OwnerID int64 `gorm:"type:bigint(20);primary_key;column:owner_id;index:owner_id;default:-1;not null" bson:"_id"` OwnerType int32 `gorm:"type:int(10);primary_key;column:owner_type;index:owner_type;default:-1;not null" bson:"owner_type"` Talents []*Talent `json:"talents" bson:"talents"` sync.RWMutex `bson:"-"` // contains filtered or unexported fields }
func NewTalentManager ¶
func NewTalentManager(owner define.PluginObj, ds *db.Datastore) *TalentManager
func (*TalentManager) AddTalent ¶
func (m *TalentManager) AddTalent(id int32) error
func (*TalentManager) GetTalent ¶
func (m *TalentManager) GetTalent(id int32) *Talent
func (*TalentManager) GetTalentList ¶
func (m *TalentManager) GetTalentList() []*Talent
func (*TalentManager) LoadFromDB ¶
func (m *TalentManager) LoadFromDB()
func (*TalentManager) TableName ¶
func (m *TalentManager) TableName() string
Click to show internal directories.
Click to hide internal directories.