46 lines
944 B
Go
46 lines
944 B
Go
package island
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/lego/base"
|
|
"go_dreamfactory/lego/core"
|
|
"go_dreamfactory/modules"
|
|
)
|
|
|
|
/*
|
|
模块名:Pack
|
|
描述:背包系统模块
|
|
开发:李伟
|
|
*/
|
|
func NewModule() core.IModule {
|
|
m := new(IsLand)
|
|
return m
|
|
}
|
|
|
|
type IsLand struct {
|
|
modules.ModuleBase
|
|
service base.IRPCXService
|
|
privilege comm.IPrivilege
|
|
api *apiComp
|
|
model *modelComp
|
|
configure *ConfigureComp
|
|
}
|
|
|
|
func (this *IsLand) GetType() core.M_Modules {
|
|
return comm.ModuleGameInvite
|
|
}
|
|
|
|
func (this *IsLand) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
|
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
|
return
|
|
}
|
|
this.service = service.(comm.IService)
|
|
return
|
|
}
|
|
|
|
func (this *IsLand) OnInstallComp() {
|
|
this.ModuleBase.OnInstallComp()
|
|
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
|
|
this.model = this.RegisterComp(new(modelComp)).(*modelComp)
|
|
}
|