professions

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpaceProfession = "profession"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ITypeProfessionData

type ITypeProfessionData interface {
	Set(name string, profession *Profession)
	List() []*Profession
	Del(name string) (*Profession, bool)
	Get(name string) (*Profession, bool)
	Data() []*eosc.ProfessionConfig
}

func NewProfessionData

func NewProfessionData() ITypeProfessionData

type Profession

type Profession struct {
	// contains filtered or unexported fields
}

func NewProfession

func NewProfession(config *eosc.ProfessionConfig) *Profession

func (*Profession) AppendAttr

func (p *Profession) AppendAttr() []string

func (*Profession) DeleteDriver

func (p *Profession) DeleteDriver(name string) error

func (*Profession) Detail

func (p *Profession) Detail() *eosc.ProfessionDetail

func (*Profession) Drivers

func (p *Profession) Drivers() []*eosc.DriverInfo

func (*Profession) DriversItem

func (p *Profession) DriversItem() []*eosc.Item

func (*Profession) GetDriver

func (p *Profession) GetDriver(name string) (*eosc.DriverDetail, bool)

func (*Profession) HasDriver

func (p *Profession) HasDriver(name string) bool

func (*Profession) Mod added in v0.3.0

func (*Profession) SetDriver

func (p *Profession) SetDriver(name string, detail *eosc.DriverConfig) error

type Professions

type Professions struct {
	// contains filtered or unexported fields
}

func NewProfessions

func NewProfessions() *Professions

func (*Professions) All

func (p *Professions) All() []*eosc.ProfessionConfig

func (*Professions) Delete

func (p *Professions) Delete(name string) error

func (*Professions) GetProfession

func (p *Professions) GetProfession(name string) (eosc.IProfession, bool)

func (*Professions) Infos

func (p *Professions) Infos() []*eosc.ProfessionInfo

func (*Professions) Reset

func (p *Professions) Reset(professions []*eosc.ProfessionConfig)

func (*Professions) Set

func (p *Professions) Set(name string, profession *eosc.ProfessionConfig) error

type TProfessionData

type TProfessionData struct {
	// contains filtered or unexported fields
}

func (*TProfessionData) Data

func (d *TProfessionData) Data() []*eosc.ProfessionConfig

func (*TProfessionData) Del

func (d *TProfessionData) Del(name string) (*Profession, bool)

func (*TProfessionData) Get

func (d *TProfessionData) Get(name string) (*Profession, bool)

func (*TProfessionData) List

func (d *TProfessionData) List() []*Profession

func (*TProfessionData) Set

func (d *TProfessionData) Set(name string, profession *Profession)

Jump to

Keyboard shortcuts

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