Пример #1
0
        public static void Init(ResourceService resService, TaskScheduler mainScheduler)
        {
            ServiceMgr.GetServiceMgr().RegisterIService(resService);
            s_MainScheduler = mainScheduler;

            Task <AppConfig> appConfig = resService.Get <AppConfig>(new ResourcePath(ResourcePath.PathType.Resource, "XLNConfig.xml"));

            AppConig = appConfig.Result;

            if (AppConig != null)
            {
                LogService.Logger.Log(LogService.LogType.LT_DEBUG, "AppConfig Load Success");
                ServiceMgr.GetServiceMgr().InjectService(AppConig);
            }

            ServiceMgr.GetServiceMgr().Init();
        }
Пример #2
0
 public override bool OnInit()
 {
     m_ResourceService = ServiceMgr.GetServiceMgr().GetService <ResourceService>();
     return(base.OnInit());
 }
Пример #3
0
 public override bool OnInit()
 {
     m_ActorService = ServiceMgr.GetServiceMgr().GetService <ActorService>();
     return(base.OnInit());
 }