XModule

package
v0.0.0-...-2824937 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DModule

type DModule interface {
	Init(selfGetter DModuleGetter) bool
	Destroy()
	Run(delta int64)
}

type DModuleGetter

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

func (*DModuleGetter) Get

func (g *DModuleGetter) Get() DModule

Get ... ...

type DModuleMetric

type DModuleMetric struct {
	ModuleTickTime time.Duration
	TotalTickTime  time.Duration
}

DModuleMetric ...

type DModuleMgr

type DModuleMgr []implDModule

func NewDmodule

func NewDmodule(num int) DModuleMgr

NewDmodule ... ...

func (*DModuleMgr) GetMetricData

func (mgr *DModuleMgr) GetMetricData() map[string]*DModuleMetric

GetMetricData ...

func (*DModuleMgr) Getter

func (mgr *DModuleMgr) Getter(id int) DModuleGetter

Getter ... ...

func (*DModuleMgr) Init

func (mgr *DModuleMgr) Init(id int) bool

Init ... ...

func (*DModuleMgr) Register

func (mgr *DModuleMgr) Register(id int, m DModule) DModuleGetter

Register ... ...

func (*DModuleMgr) Run

func (mgr *DModuleMgr) Run(id int, delta int64)

Run ...

func (*DModuleMgr) RunAll

func (mgr *DModuleMgr) RunAll(delta int64)

RunAll ...

func (*DModuleMgr) TickUseTime

func (mgr *DModuleMgr) TickUseTime(id int) time.Duration

TickUseTime ...

type SModule

type SModule interface {
	Load() bool
	Reload()
	Destroy()
}

type SModuleGetter

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

func (SModuleGetter) Get

func (g SModuleGetter) Get() SModule

type SModuleMgr

type SModuleMgr []SModule

func NewSmoduleMgr

func NewSmoduleMgr(num int) SModuleMgr

NewSmoduleMgr ...

func (*SModuleMgr) Destroy

func (mgr *SModuleMgr) Destroy()

Destroy ...

func (*SModuleMgr) Getter

func (mgr *SModuleMgr) Getter(id int) SModuleGetter

Getter ...

func (*SModuleMgr) Load

func (mgr *SModuleMgr) Load() bool

Load ...

func (*SModuleMgr) Register

func (mgr *SModuleMgr) Register(id int, m SModule) SModuleGetter

Register ...

func (*SModuleMgr) Reload

func (mgr *SModuleMgr) Reload(id int) bool

Reload ...

Jump to

Keyboard shortcuts

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