talent

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL