错误检测
This commit is contained in:
parent
d0151b0eae
commit
6784338b43
@ -242,16 +242,6 @@ type (
|
||||
GMGetAllEquip(session IUserSession, ismaxlv bool) (errdata *pb.ErrorData)
|
||||
}
|
||||
|
||||
IMline interface {
|
||||
ModifyMlineDataByNanduID(session IUserSession, id int32) (errdata *pb.ErrorData)
|
||||
/// 查询章节ID
|
||||
GetUserMlineData(uid string, chapterType int32) (chapterId int32)
|
||||
|
||||
// 校验主线是否通关
|
||||
CheckCommpleteStage(uid string, stageId int32) (b bool)
|
||||
///红点
|
||||
IGetReddot
|
||||
}
|
||||
//任务
|
||||
ITask interface {
|
||||
///红点
|
||||
|
@ -41,7 +41,9 @@ func (this *Academy) Init(service core.IService, module core.IModule, options co
|
||||
}
|
||||
|
||||
func (this *Academy) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -59,7 +59,9 @@ func (this *Activity) Init(service core.IService, module core.IModule, options c
|
||||
return
|
||||
}
|
||||
func (this *Activity) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
this.service.RegisterFunctionName(string(comm.Rpc_Activity), this.Rpc_Activity)
|
||||
var module core.IModule
|
||||
|
@ -33,7 +33,9 @@ func (this *AddRecharge) Init(service core.IService, module core.IModule, option
|
||||
}
|
||||
|
||||
func (this *AddRecharge) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -51,7 +51,9 @@ func (this *Arena) Init(service core.IService, module core.IModule, options core
|
||||
return
|
||||
}
|
||||
func (this *Arena) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -53,7 +53,9 @@ func (this *Battle) Init(service core.IService, module core.IModule, options cor
|
||||
return
|
||||
}
|
||||
func (this *Battle) Start() (err error) {
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
if if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}; err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
|
@ -45,7 +45,9 @@ func (this *BattleRecord) OnInstallComp() {
|
||||
}
|
||||
|
||||
func (this *BattleRecord) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,9 @@ func (this *Buried) Init(service core.IService, module core.IModule, options cor
|
||||
}
|
||||
|
||||
func (this *Buried) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleWtask); err != nil {
|
||||
|
@ -37,7 +37,9 @@ func (this *CaptureSheep) Init(service core.IService, module core.IModule, optio
|
||||
}
|
||||
|
||||
func (this *CaptureSheep) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleDragon); err != nil {
|
||||
return
|
||||
|
@ -43,7 +43,9 @@ func (this *Caravan) Init(service core.IService, module core.IModule, options co
|
||||
}
|
||||
|
||||
func (this *Caravan) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleMail); err != nil {
|
||||
return
|
||||
|
@ -59,7 +59,9 @@ func (this *Chat) Init(service core.IService, module core.IModule, options core.
|
||||
}
|
||||
|
||||
func (this *Chat) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleGM); err != nil {
|
||||
return
|
||||
|
@ -41,7 +41,9 @@ func (this *Combat) Init(service core.IService, module core.IModule, options cor
|
||||
}
|
||||
|
||||
func (this *Combat) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -36,7 +36,9 @@ func (this *Dailytask) Init(service core.IService, module core.IModule, options
|
||||
}
|
||||
|
||||
func (this *Dailytask) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleWtask); err != nil {
|
||||
return
|
||||
|
@ -49,7 +49,9 @@ func (this *Dragon) OnInstallComp() {
|
||||
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||
}
|
||||
func (this *Dragon) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
event.RegisterGO(comm.EventUserOffline, this.EventUserOffline)
|
||||
return
|
||||
}
|
||||
|
@ -39,7 +39,9 @@ func (this *Enchant) Init(service core.IService, module core.IModule, options co
|
||||
}
|
||||
|
||||
func (this *Enchant) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -52,7 +52,9 @@ func (this *Equipment) Init(service core.IService, module core.IModule, options
|
||||
// 模块启动接口
|
||||
// 模块启动
|
||||
func (this *Equipment) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleChat); err != nil {
|
||||
return
|
||||
|
@ -59,7 +59,9 @@ func (this *Friend) OnInstallComp() {
|
||||
}
|
||||
|
||||
func (this *Friend) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
this.service.RegisterFunctionName(string(comm.Rpc_ModuleFriendUseAssitHero), this.RpcUseAssisHero)
|
||||
this.service.RegisterFunctionName(string(comm.Rpc_ModuleFriendDB), this.RpcFriendDB)
|
||||
this.globalConf = this.ModuleTools.GetGlobalConf()
|
||||
|
@ -78,7 +78,9 @@ func (this *Gateway) Start() (err error) {
|
||||
for name, fn := range _name2Func {
|
||||
this.service.RegisterFunctionName(name, fn)
|
||||
}
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
//没有建立客户端 主动发起握手
|
||||
this.service.RpcGo(context.Background(), comm.Service_Mainte, rpcx.RpcX_ShakeHands, &rpcx.ServiceNode{
|
||||
ServiceTag: this.service.GetTag(),
|
||||
|
@ -50,7 +50,9 @@ func (this *GM) Init(service core.IService, module core.IModule, options core.IM
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *GM) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
this.service.RegisterFunctionName(string(comm.Rpc_ModuleGMCreateCmd), this.Rpc_ModuleGMCreateCmd)
|
||||
return
|
||||
}
|
||||
|
@ -39,7 +39,9 @@ func (this *Guidance) Init(service core.IService, module core.IModule, options c
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Guidance) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,9 @@ func (this *GuildGve) Init(service core.IService, module core.IModule, options c
|
||||
return
|
||||
}
|
||||
func (this *GuildGve) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleSociaty); err != nil {
|
||||
return
|
||||
|
@ -60,7 +60,9 @@ func (this *Hero) OnInstallComp() {
|
||||
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||
}
|
||||
func (this *Hero) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleLibrary); err != nil {
|
||||
return
|
||||
|
@ -31,7 +31,9 @@ func (this *HeroTask) Init(service core.IService, module core.IModule, options c
|
||||
}
|
||||
|
||||
func (this *HeroTask) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -44,7 +44,9 @@ func (this *Horoscope) Init(service core.IService, module core.IModule, options
|
||||
}
|
||||
|
||||
func (this *Horoscope) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,9 @@ func (this *Hunting) Init(service core.IService, module core.IModule, options co
|
||||
}
|
||||
|
||||
func (this *Hunting) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -48,7 +48,9 @@ func (this *Items) Init(service core.IService, module core.IModule, options core
|
||||
|
||||
// 模块启动
|
||||
func (this *Items) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModulePrivilege); err != nil {
|
||||
return
|
||||
|
@ -31,7 +31,9 @@ func (this *KFTask) Init(service core.IService, module core.IModule, options cor
|
||||
}
|
||||
|
||||
func (this *KFTask) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -48,7 +48,9 @@ func (this *Library) OnInstallComp() {
|
||||
}
|
||||
|
||||
func (this *Library) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
this.service.RegisterFunctionName(string(comm.Rpc_ModuleFetter), this.Rpc_ModuleFetter)
|
||||
|
||||
return
|
||||
|
@ -45,7 +45,9 @@ func (this *ModuleLinestory) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *ModuleLinestory) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
if this.confTimeline, err = this.configure.getLinestoryTimelineCfg(); err != nil {
|
||||
return err
|
||||
}
|
||||
@ -60,10 +62,10 @@ func (this *ModuleLinestory) isOverRealline(finishTasks []int32) bool {
|
||||
//真实结局节点ID
|
||||
var realEndingTaskId int32
|
||||
// for _, v := range this.confMaintask.GetDataList() {
|
||||
// if v.Ending == 1 {
|
||||
// realEndingTaskId = v.Id
|
||||
// break
|
||||
// }
|
||||
// if v.Ending == 1 {
|
||||
// realEndingTaskId = v.Id
|
||||
// break
|
||||
// }
|
||||
// }
|
||||
log.Debugln(realEndingTaskId)
|
||||
// 存在真实结局节点
|
||||
|
@ -52,7 +52,9 @@ func (this *Mail) Init(service core.IService, module core.IModule, options core.
|
||||
return
|
||||
}
|
||||
func (this *Mail) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
this.service.RegisterFunctionName(string(comm.Rpc_Mail), this.Rpc_Mail)
|
||||
return
|
||||
}
|
||||
|
@ -44,7 +44,9 @@ func (this *Mainline) OnInstallComp() {
|
||||
}
|
||||
|
||||
func (this *Mainline) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -36,7 +36,9 @@ func (this *MgoLog) OnInstallComp() {
|
||||
}
|
||||
|
||||
func (this *MgoLog) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
@ -64,7 +64,9 @@ func (this *ModuleBase) Init(service core.IService, module core.IModule, options
|
||||
|
||||
// 模块启动接口
|
||||
func (this *ModuleBase) Start() (err error) {
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
if if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}; err != nil {
|
||||
return
|
||||
}
|
||||
var comp core.IServiceComp
|
||||
|
@ -54,7 +54,9 @@ func (this *Moonfantasy) Init(service core.IService, module core.IModule, option
|
||||
}
|
||||
|
||||
func (this *Moonfantasy) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleChat); err != nil {
|
||||
return
|
||||
|
@ -38,7 +38,9 @@ func (this *Oldtimes) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Oldtimes) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleCombat); err != nil {
|
||||
return
|
||||
|
@ -68,7 +68,9 @@ func (this *Pagoda) ModifyPagodaData(uid string, data map[string]interface{}) (e
|
||||
}
|
||||
|
||||
func (this *Pagoda) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -58,7 +58,9 @@ func (this *Parkour) Init(service core.IService, module core.IModule, options co
|
||||
}
|
||||
|
||||
func (this *Parkour) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
this.service.RegisterFunctionName(string(comm.RPC_ParkourMatchSucc), this.createbattle)
|
||||
event.RegisterGO(comm.EventUserOffline, this.useroffline)
|
||||
return
|
||||
|
@ -49,7 +49,9 @@ func (this *Passon) Init(service core.IService, module core.IModule, options cor
|
||||
return
|
||||
}
|
||||
func (this *Passon) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,9 @@ func (this *Pay) Init(service core.IService, module core.IModule, options core.I
|
||||
return
|
||||
}
|
||||
func (this *Pay) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModulePrivilege); err != nil {
|
||||
return
|
||||
|
@ -58,7 +58,9 @@ func (this *Practice) Init(service core.IService, module core.IModule, options c
|
||||
}
|
||||
|
||||
func (this *Practice) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModulePvp); err != nil {
|
||||
return
|
||||
|
@ -55,7 +55,9 @@ func (this *Privilege) Start() (err error) {
|
||||
return
|
||||
}
|
||||
this.mail = module.(comm.Imail)
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
event.RegisterGO(comm.EventUserOffline, this.EventUserOffline)
|
||||
return
|
||||
}
|
||||
|
@ -35,7 +35,9 @@ func (this *PushGiftbag) Init(service core.IService, module core.IModule, option
|
||||
}
|
||||
|
||||
func (this *PushGiftbag) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -53,7 +53,9 @@ func (this *Pvp) Init(service core.IService, module core.IModule, options core.I
|
||||
}
|
||||
|
||||
func (this *Pvp) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -32,7 +32,9 @@ func (this *Questionnaire) Init(service core.IService, module core.IModule, opti
|
||||
}
|
||||
|
||||
func (this *Questionnaire) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -53,7 +53,9 @@ func (this *Reddot) Init(service core.IService, module core.IModule, options cor
|
||||
return
|
||||
}
|
||||
func (this *Reddot) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
|
||||
if module, err = this.service.GetModule(comm.ModuleMainline); err != nil {
|
||||
|
@ -42,7 +42,9 @@ func (this *Reputation) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Reputation) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
@ -66,7 +68,7 @@ func (this *Reputation) getCampLvMax(raceType int32) (maxLv int32) {
|
||||
|
||||
// 声望升级
|
||||
// raceType 阵营 fv 阵营好感度累计值
|
||||
func (this *Reputation) Upgrade(session comm.IUserSession, raceType int32, fv int32) int32 {
|
||||
func (this *Reputation) Upgrade(session comm.IUserSession, raceType int32, fv int32) int32 {
|
||||
uid := session.GetUserId()
|
||||
reputation := this.modelReputation.getDBReputation(uid)
|
||||
if reputation == nil {
|
||||
@ -103,7 +105,7 @@ func (this *Reputation) Upgrade(session comm.IUserSession, raceType int32, fv in
|
||||
if nextCampConf == nil {
|
||||
return cnf.ReputationLv
|
||||
} else {
|
||||
if fv >= nextCampConf.ReputationExp {
|
||||
if fv >= nextCampConf.ReputationExp {
|
||||
c.ReputationLv = nextCampConf.ReputationLv
|
||||
reward = cnf.Reward
|
||||
flag = true
|
||||
|
@ -44,7 +44,9 @@ func (this *RobotModule) Init(service core.IService, module core.IModule, option
|
||||
return
|
||||
}
|
||||
func (this *RobotModule) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,9 @@ func (this *Shop) Init(service core.IService, module core.IModule, options core.
|
||||
return
|
||||
}
|
||||
func (this *Shop) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleEquipment); err != nil {
|
||||
return
|
||||
|
@ -35,7 +35,9 @@ func (this *ShopCenter) Init(service core.IService, module core.IModule, options
|
||||
}
|
||||
|
||||
func (this *ShopCenter) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleMainline); err != nil {
|
||||
return
|
||||
|
@ -62,7 +62,9 @@ func (this *Sociaty) OnInstallComp() {
|
||||
}
|
||||
|
||||
func (this *Sociaty) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
this.service.RegisterFunctionName(string(comm.Rpc_ModuleSociaty), this.RpcGetSociaty)
|
||||
this.service.RegisterFunctionName(string(comm.Rpc_ModuleSociatyUpdate), this.RpcUpdateSociaty)
|
||||
this.service.RegisterFunctionName(string(comm.Rpc_ModuleSociatyTask), this.RpcUpdateUserTask)
|
||||
|
@ -39,7 +39,9 @@ func (this *Stonehenge) Init(service core.IService, module core.IModule, options
|
||||
}
|
||||
|
||||
func (this *Stonehenge) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -30,7 +30,9 @@ func (this *StoryLine) Init(service core.IService, module core.IModule, options
|
||||
}
|
||||
|
||||
func (this *StoryLine) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -46,7 +46,9 @@ func (this *ModuleSys) Init(service core.IService, module core.IModule, options
|
||||
}
|
||||
|
||||
func (this *ModuleSys) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleWtask); err != nil {
|
||||
return
|
||||
|
@ -54,7 +54,9 @@ func (this *Timer) Init(service core.IService, module core.IModule, options core
|
||||
}
|
||||
|
||||
func (this *Timer) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -32,7 +32,9 @@ func (this *Tools) Init(service core.IService, module core.IModule, options core
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Tools) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,9 @@ func (this *Turntable) Init(service core.IService, module core.IModule, options
|
||||
}
|
||||
|
||||
func (this *Turntable) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleMail); err != nil {
|
||||
return
|
||||
|
@ -46,7 +46,9 @@ func (this *UiGame) OnInstallComp() {
|
||||
}
|
||||
|
||||
func (this *UiGame) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -79,7 +79,9 @@ func (this *User) Init(service core.IService, module core.IModule, options core.
|
||||
}
|
||||
|
||||
func (this *User) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
event.RegisterGO(comm.EventUserOffline, this.CleanSession)
|
||||
this.service.RegisterFunctionName(Rpc_GetAllOnlineUser, this.RpcGetAllOnlineUser)
|
||||
this.service.RegisterFunctionName(Rpc_GetCrossUser, this.RpcGetCrossUser)
|
||||
|
@ -30,7 +30,9 @@ func (this *Venture) Init(service core.IService, module core.IModule, options co
|
||||
}
|
||||
|
||||
func (this *Venture) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -76,7 +76,9 @@ func (this *Viking) ModifyVikingData(uid string, data map[string]interface{}) (e
|
||||
return
|
||||
}
|
||||
func (this *Viking) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
@ -34,7 +34,9 @@ func (this *Warorder) Init(service core.IService, module core.IModule, options c
|
||||
}
|
||||
|
||||
func (this *Warorder) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -36,7 +36,9 @@ func (this *WeekTask) Init(service core.IService, module core.IModule, options c
|
||||
}
|
||||
|
||||
func (this *WeekTask) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleSys); err != nil {
|
||||
return
|
||||
|
@ -39,7 +39,9 @@ func (this *WTask) Init(service core.IService, module core.IModule, options core
|
||||
}
|
||||
|
||||
func (this *WTask) Start() (err error) {
|
||||
err = this.ModuleBase.Start()
|
||||
if err = this.ModuleBase.Start(); err != nil {
|
||||
return
|
||||
}
|
||||
var module core.IModule
|
||||
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user