public void LoadConfigs()
 {
     config = LoadConfigFile <BTConfig>(configFileName, config);
     LoadHackConfig();
     if (hackConfig != null && hackConfig.controls_useFlightStatsOverride)
     {
         flightStats = LoadConfigFile <AvAvatarFlyingData>(flightStatsFileName, flightStats);
     }
 }
Пример #2
0
        protected void InitBattleSys()
        {
            BTConfig.SetBTConfig();
            Singleton <GamePlayerCenter> .CreateInstance();

            Singleton <ActorDataCenter> .CreateInstance();

            Singleton <ShenFuSystem> .CreateInstance();

            MonoSingleton <CameraSystem> .GetInstance();

            Singleton <StarSystem> .CreateInstance();

            Singleton <BattleStatistic> .CreateInstance();

            Singleton <CBattleSystem> .CreateInstance();

            Singleton <DropItemMgr> .CreateInstance();

            Singleton <PassiveCreater <PassiveEvent, PassiveEventAttribute> > .CreateInstance();

            Singleton <PassiveCreater <PassiveCondition, PassiveConditionAttribute> > .CreateInstance();

            Singleton <TipProcessor> .CreateInstance();

            Singleton <GameBuilder> .CreateInstance();

            Singleton <GameObjMgr> .CreateInstance();

            Singleton <SceneManagement> .CreateInstance();

            Singleton <SkillDetectionControl> .CreateInstance();

            MonoSingleton <SceneMgr> .GetInstance();

            Singleton <SkillSelectControl> .CreateInstance();

            Singleton <SkillFuncDelegator> .CreateInstance();

            Singleton <SkillIndicateSystem> .CreateInstance();

            Singleton <CBattleGuideManager> .CreateInstance();

            Singleton <CTrainingHelper> .CreateInstance();

            Singleton <CSurrenderSystem> .CreateInstance();
        }
Пример #3
0
 public void SaveXmlConfiguration(BTConfig btConfig, string configFile)
 {
     try
     {
         XmlSerializer serializer = new XmlSerializer(typeof(BTConfig));
         Stream writer = new FileStream(configFile, FileMode.Create);
         serializer.Serialize(writer, btConfig);
         writer.Close();
     }
     catch (Exception ex)
     {
         throw NewBTComException("Error while serializing configuration to XML.", ex);
     }
 }