battle 赋值

This commit is contained in:
meixiongfeng 2022-09-06 19:54:51 +08:00
parent 33d20f8f13
commit 3f5c6ba3ab

View File

@ -28,7 +28,7 @@ func (this *Mainline) GetType() core.M_Modules {
func (this *Mainline) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { func (this *Mainline) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
err = this.ModuleBase.Init(service, module, options) err = this.ModuleBase.Init(service, module, options)
this.service = service.(base.IRPCXService)
return return
} }
@ -63,7 +63,7 @@ func (this *Mainline) GetUsermainLineData(uid string) (mainlineId int32) {
func (this *Mainline) Start() (err error) { func (this *Mainline) Start() (err error) {
err = this.ModuleBase.Start() err = this.ModuleBase.Start()
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleChat); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return
} }