入口
This commit is contained in:
parent
6089131bf0
commit
338a2daa28
@ -77,6 +77,7 @@ const (
|
|||||||
ModuleCombat core.M_Modules = "combat" //关卡编辑
|
ModuleCombat core.M_Modules = "combat" //关卡编辑
|
||||||
ModuleEnchant core.M_Modules = "enchant" //附魔
|
ModuleEnchant core.M_Modules = "enchant" //附魔
|
||||||
ModuleAutoBattle core.M_Modules = "autobattle" //自动战斗
|
ModuleAutoBattle core.M_Modules = "autobattle" //自动战斗
|
||||||
|
ModuleMline core.M_Modules = "mline" //主线模块
|
||||||
)
|
)
|
||||||
|
|
||||||
//数据表名定义处
|
//数据表名定义处
|
||||||
|
@ -21,7 +21,7 @@ func NewModule() core.IModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *Mline) GetType() core.M_Modules {
|
func (this *Mline) GetType() core.M_Modules {
|
||||||
return comm.ModuleMainline
|
return comm.ModuleMline
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Mline) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
func (this *Mline) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||||
@ -37,17 +37,6 @@ func (this *Mline) OnInstallComp() {
|
|||||||
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 接口信息 给其他模块调用 用来修改主线关卡信息
|
|
||||||
func (this *Mline) ModifyMainlineData(uid string, id int32) (code pb.ErrorCode) {
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func (this *Mline) GetUsermainLineData(uid string) (mainlineId int32) {
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func (this *Mline) Start() (err error) {
|
func (this *Mline) Start() (err error) {
|
||||||
err = this.ModuleBase.Start()
|
err = this.ModuleBase.Start()
|
||||||
var module core.IModule
|
var module core.IModule
|
||||||
|
@ -24,6 +24,7 @@ import (
|
|||||||
"go_dreamfactory/modules/mail"
|
"go_dreamfactory/modules/mail"
|
||||||
"go_dreamfactory/modules/mainline"
|
"go_dreamfactory/modules/mainline"
|
||||||
"go_dreamfactory/modules/martialhall"
|
"go_dreamfactory/modules/martialhall"
|
||||||
|
"go_dreamfactory/modules/mline"
|
||||||
"go_dreamfactory/modules/moonfantasy"
|
"go_dreamfactory/modules/moonfantasy"
|
||||||
"go_dreamfactory/modules/notify"
|
"go_dreamfactory/modules/notify"
|
||||||
"go_dreamfactory/modules/pagoda"
|
"go_dreamfactory/modules/pagoda"
|
||||||
@ -108,7 +109,7 @@ func main() {
|
|||||||
reddot.NewModule(),
|
reddot.NewModule(),
|
||||||
combat.NewModule(),
|
combat.NewModule(),
|
||||||
enchant.NewModule(),
|
enchant.NewModule(),
|
||||||
//autoBattle.NewModule(),
|
mline.NewModule(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user