protected override void OnStarted() { Debug.Log("SyncService OnStarted"); GameMessageService.Init(); m_world = WorldManager.CreateWorld <DemoWorld>(); UpdateEngine.Init(updateInterval); base.OnStarted(); }
protected override void OnStarted() { Debug.Log("SyncService OnStarted"); GameMessageService <CommandComponent> .Init(); m_world = WorldManager.CreateWorld <DemoWorld>(); m_world.IsStart = true; m_world.SyncRule = SyncRule.Status; UpdateEngine.Init(updateInterval); base.OnStarted(); }
protected override bool Setup(IRootConfig rootConfig, IServerConfig config) { //TODO 读取配置设置isDebug Debug.SetLogger(Logger, true); Debug.Log("SyncService Setup Mode: " + config.Mode); DataBaseService.Init(); matchService.Init(this); loginService.Init(this); reConnectService.Init(this); selectCharacterService.Init(this); CommandMessageService <CommandComponent> .Init(); GameMessageService.Init(); UpdateEngine.Init(updateInterval); return(base.Setup(rootConfig, config)); }