Exemplo n.º 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();
        }
Exemplo n.º 2
0
 public override bool OnInit()
 {
     m_ResourceService = ServiceMgr.GetServiceMgr().GetService <ResourceService>();
     return(base.OnInit());
 }
Exemplo n.º 3
0
 public override bool OnInit()
 {
     m_ActorService = ServiceMgr.GetServiceMgr().GetService <ActorService>();
     return(base.OnInit());
 }