package uigame import ( "go_dreamfactory/comm" "go_dreamfactory/lego/base" "go_dreamfactory/lego/core" "go_dreamfactory/modules" ) type UiGame struct { modules.ModuleBase modelPuzzle *modelPuzzle api *apiComp configure *configureComp service base.IRPCXService modelLattice *modelLattice } func NewModule() core.IModule { return &UiGame{} } func (this *UiGame) GetType() core.M_Modules { return comm.ModulePuzzle } func (this *UiGame) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) { err = this.ModuleBase.Init(service, module, options) this.service = service.(base.IRPCXService) return } func (this *UiGame) OnInstallComp() { this.ModuleBase.OnInstallComp() this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.modelPuzzle = this.RegisterComp(new(modelPuzzle)).(*modelPuzzle) this.modelLattice = this.RegisterComp(new(modelLattice)).(*modelLattice) this.configure = this.RegisterComp(new(configureComp)).(*configureComp) } func (this *UiGame) Start() (err error) { err = this.ModuleBase.Start() return }