Esempio n. 1
0
        public override void PostInit()
        {
            base.PostInit();

            _gameTicker.Initialize();
            IoCManager.Resolve <RecipeManager>().Initialize();
            IoCManager.Resolve <AlertManager>().Initialize();
            IoCManager.Resolve <BlackboardManager>().Initialize();
            IoCManager.Resolve <ConsiderationsManager>().Initialize();
            IoCManager.Resolve <IPDAUplinkManager>().Initialize();
            IoCManager.Resolve <IAdminManager>().Initialize();
            _euiManager.Initialize();
        }
        public override void PostInit()
        {
            base.PostInit();

            IoCManager.Resolve <ISandboxManager>().Initialize();
            IoCManager.Resolve <RecipeManager>().Initialize();
            IoCManager.Resolve <AlertManager>().Initialize();
            IoCManager.Resolve <ActionManager>().Initialize();
            IoCManager.Resolve <BlackboardManager>().Initialize();
            IoCManager.Resolve <ConsiderationsManager>().Initialize();
            IoCManager.Resolve <IAdminManager>().Initialize();
            IoCManager.Resolve <INpcBehaviorManager>().Initialize();
            IoCManager.Resolve <IAfkManager>().Initialize();
            _euiManager.Initialize();

            IoCManager.Resolve <IEntitySystemManager>().GetEntitySystem <GameTicker>().PostInitialize();
        }
Esempio n. 3
0
        public override void PostInit()
        {
            base.PostInit();

            IoCManager.Resolve <IChatSanitizationManager>().Initialize();
            IoCManager.Resolve <IChatManager>().Initialize();
            var configManager   = IoCManager.Resolve <IConfigurationManager>();
            var resourceManager = IoCManager.Resolve <IResourceManager>();
            var dest            = configManager.GetCVar(CCVars.DestinationFile);

            if (!string.IsNullOrEmpty(dest))
            {
                var resPath = new ResourcePath(dest).ToRootedPath();
                var file    = resourceManager.UserData.OpenWriteText(resPath.WithName("chem_" + dest));
                ChemistryJsonGenerator.PublishJson(file);
                file.Flush();
                file = resourceManager.UserData.OpenWriteText(resPath.WithName("react_" + dest));
                ReactionJsonGenerator.PublishJson(file);
                file.Flush();
                IoCManager.Resolve <IBaseServer>().Shutdown("Data generation done");
            }
            else
            {
                IoCManager.Resolve <ISandboxManager>().Initialize();
                IoCManager.Resolve <RecipeManager>().Initialize();
                IoCManager.Resolve <ActionManager>().Initialize();
                IoCManager.Resolve <BlackboardManager>().Initialize();
                IoCManager.Resolve <ConsiderationsManager>().Initialize();
                IoCManager.Resolve <IAdminManager>().Initialize();
                IoCManager.Resolve <INpcBehaviorManager>().Initialize();
                IoCManager.Resolve <IAfkManager>().Initialize();
                IoCManager.Resolve <RulesManager>().Initialize();
                _euiManager.Initialize();

                IoCManager.Resolve <IGameMapManager>().Initialize();
                IoCManager.Resolve <IEntitySystemManager>().GetEntitySystem <GameTicker>().PostInitialize();
                IoCManager.Resolve <IBqlQueryManager>().DoAutoRegistrations();
            }
        }