模块初始化校验
This commit is contained in:
parent
65e6456f00
commit
258b44f9e7
@ -35,7 +35,9 @@ func (this *Academy) GetType() core.M_Modules {
|
||||
|
||||
//模块初始化接口 注册用户创建角色事件
|
||||
func (this *Academy) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -43,7 +43,9 @@ func (this *Activity) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Activity) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
|
||||
// ticker := time.NewTicker(time.Second * 10)
|
||||
|
@ -27,7 +27,9 @@ func (this *AddRecharge) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *AddRecharge) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -46,7 +46,9 @@ func (this *Arena) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Arena) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -35,7 +35,9 @@ func (this *PandaAtlas) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *PandaAtlas) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -47,7 +47,9 @@ func (this *Battle) NewOptions() (options core.IModuleOptions) {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Battle) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
this.options = options.(*Options)
|
||||
return
|
||||
|
@ -32,7 +32,9 @@ func (this *BattleRecord) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *BattleRecord) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,9 @@ func (this *Buried) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Buried) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(comm.IService)
|
||||
return
|
||||
}
|
||||
|
@ -31,7 +31,9 @@ func (this *CaptureSheep) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *CaptureSheep) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -37,7 +37,9 @@ func (this *Caravan) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Caravan) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -52,7 +52,9 @@ func (this *Chat) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Chat) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
this.options = options.(*Options)
|
||||
return
|
||||
|
@ -35,7 +35,9 @@ func (this *Combat) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Combat) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -30,7 +30,9 @@ func (this *Dailytask) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Dailytask) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -22,7 +22,9 @@ func NewModule() core.IModule {
|
||||
}
|
||||
|
||||
func (this *Dispatch) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,9 @@ func (this *Dragon) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Dragon) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -33,7 +33,9 @@ func (this *Enchant) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Enchant) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -44,7 +44,9 @@ func (this *Equipment) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Equipment) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -30,7 +30,9 @@ func (this *Forum) GetType() core.M_Modules {
|
||||
|
||||
//模块初始化接口 注册用户创建角色事件
|
||||
func (this *Forum) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,9 @@ func (this *Friend) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Friend) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -52,7 +52,9 @@ func (this *Gateway) Service() base.IRPCXService {
|
||||
|
||||
// Init 模块初始化函数
|
||||
func (this *Gateway) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.options = options.(*Options)
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
|
@ -43,7 +43,9 @@ func (this *GM) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *GM) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -30,7 +30,9 @@ func (this *Gourmet) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Gourmet) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -23,7 +23,9 @@ func NewModule() core.IModule {
|
||||
return &Growtask{}
|
||||
}
|
||||
func (this *Growtask) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,9 @@ func (this *Guidance) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Guidance) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -36,7 +36,9 @@ func (this *GuildGve) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *GuildGve) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(comm.IService)
|
||||
return
|
||||
}
|
||||
|
@ -45,7 +45,9 @@ func (this *Hero) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Hero) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -25,7 +25,9 @@ func (this *HeroTask) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *HeroTask) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -38,7 +38,9 @@ func (this *Horoscope) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Horoscope) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -34,7 +34,9 @@ func (this *Hunting) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Hunting) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -41,7 +41,9 @@ func (this *Items) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Items) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -25,7 +25,9 @@ func (this *KFTask) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *KFTask) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -33,7 +33,9 @@ func (this *Library) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Library) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -29,7 +29,9 @@ func NewModule() core.IModule {
|
||||
}
|
||||
|
||||
func (this *ModuleLinestory) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,9 @@ func (this *Mail) OnInstallComp() {
|
||||
}
|
||||
|
||||
func (this *Mail) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -29,7 +29,9 @@ func (this *Mainline) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Mainline) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -21,7 +21,9 @@ type MgoLog struct {
|
||||
}
|
||||
|
||||
func (this *MgoLog) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -58,7 +58,9 @@ func (this *ModuleBase) Init(service core.IService, module core.IModule, options
|
||||
this.module = module
|
||||
this.options = options.(IOptions)
|
||||
this.options.GetLog().SetName("module." + string(module.GetType()))
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,9 @@ func (this *Moonfantasy) GetType() core.M_Modules {
|
||||
|
||||
//模块初始化接口 注册用户创建角色事件
|
||||
func (this *Moonfantasy) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -32,7 +32,9 @@ func (this *Notify) GetType() core.M_Modules {
|
||||
|
||||
//模块初始化接口 注册用户创建角色事件
|
||||
func (this *Notify) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,9 @@ func NewModule() core.IModule {
|
||||
}
|
||||
|
||||
func (this *Oldtimes) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -39,7 +39,9 @@ func (this *Pagoda) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Pagoda) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -51,7 +51,9 @@ func (this *Parkour) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化
|
||||
func (this *Parkour) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
this.battles = map[string]*RaceItem{}
|
||||
return
|
||||
|
@ -44,7 +44,9 @@ func (this *Passon) OnInstallComp() {
|
||||
}
|
||||
|
||||
func (this *Passon) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -47,7 +47,9 @@ func (this *Pay) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Pay) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -52,7 +52,9 @@ func (this *Practice) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Practice) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -35,7 +35,9 @@ func (this *Privilege) GetType() core.M_Modules {
|
||||
|
||||
//模块初始化接口 注册用户创建角色事件
|
||||
func (this *Privilege) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -29,7 +29,9 @@ func (this *PushGiftbag) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *PushGiftbag) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -47,7 +47,9 @@ func (this *Pvp) GetType() core.M_Modules {
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Pvp) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
this.battles = make(map[string]*BattleItem)
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -26,7 +26,9 @@ func (this *Questionnaire) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Questionnaire) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -48,7 +48,9 @@ func (this *Reddot) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Reddot) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -25,7 +25,9 @@ func NewModule() core.IModule {
|
||||
}
|
||||
|
||||
func (this *Reputation) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -38,7 +38,9 @@ func (this *RobotModule) NewOptions() (options core.IModuleOptions) {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *RobotModule) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.options = options.(*Options)
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
|
@ -35,7 +35,9 @@ func (this *Shop) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Shop) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -29,7 +29,9 @@ func (this *ShopCenter) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *ShopCenter) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -41,7 +41,9 @@ func (this *Smithy) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Smithy) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -42,7 +42,9 @@ func NewModule() core.IModule {
|
||||
}
|
||||
|
||||
func (this *Sociaty) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -33,7 +33,9 @@ func (this *Stonehenge) GetType() core.M_Modules {
|
||||
|
||||
//模块初始化接口 注册用户创建角色事件
|
||||
func (this *Stonehenge) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -24,7 +24,9 @@ func (this *StoryLine) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *StoryLine) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -39,7 +39,9 @@ func (this *ModuleSys) OnInstallComp() {
|
||||
|
||||
// 模块初始化
|
||||
func (this *ModuleSys) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
//event.Register(comm.EventFriendChange, this.FriendCountChange)
|
||||
return
|
||||
|
@ -47,7 +47,9 @@ func (this *Timer) NewOptions() (options core.IModuleOptions) {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Timer) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
this.options = options.(*Options)
|
||||
return
|
||||
|
@ -26,7 +26,9 @@ func (this *Tools) GetType() core.M_Modules {
|
||||
|
||||
// 模块初始化接口 注册用户创建角色事件
|
||||
func (this *Tools) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,9 @@ func (this *Turntable) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Turntable) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -31,7 +31,9 @@ func (this *UiGame) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *UiGame) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -72,7 +72,9 @@ func (this *User) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *User) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
this.timerMap = make(map[string]*time.Ticker)
|
||||
return
|
||||
|
@ -24,7 +24,9 @@ func (this *Venture) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Venture) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -49,7 +49,9 @@ func (this *Viking) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Viking) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
return
|
||||
}
|
||||
|
@ -28,7 +28,9 @@ func (this *Warorder) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *Warorder) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -42,7 +42,9 @@ func (this *Web) NewOptions() (options core.IModuleOptions) {
|
||||
}
|
||||
|
||||
func (this *Web) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(base.IRPCXService)
|
||||
this.options = options.(*Options)
|
||||
return
|
||||
|
@ -30,7 +30,9 @@ func (this *WeekTask) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *WeekTask) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
@ -33,7 +33,9 @@ func (this *WTask) GetType() core.M_Modules {
|
||||
}
|
||||
|
||||
func (this *WTask) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
err = this.ModuleBase.Init(service, module, options)
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user