30 lines
554 B
Go
30 lines
554 B
Go
package game
|
|
|
|
import (
|
|
"go_dreamfactory/modules"
|
|
|
|
"go_dreamfactory/lego/core"
|
|
)
|
|
|
|
/*
|
|
API
|
|
*/
|
|
type Api_Comp struct {
|
|
modules.MComp_GateComp
|
|
service core.IService
|
|
module *Game
|
|
}
|
|
|
|
//组件初始化接口
|
|
func (this *Api_Comp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
|
this.MComp_GateComp.Init(service, module, comp, options)
|
|
this.module = module.(*Game)
|
|
this.service = service
|
|
return
|
|
}
|
|
|
|
func (this *Api_Comp) Start() (err error) {
|
|
err = this.MComp_GateComp.Start()
|
|
return
|
|
}
|