예제 #1
0
        private static int ReloadXmlFile_config_bossAI()
        {
            int ret = GameManager.SystemBossAI.ReloadLoadFromXMlFile();
            int result;

            if (ret < 0)
            {
                result = ret;
            }
            else
            {
                GameManager.SystemMagicActionMgr.ParseBossAIActions(GameManager.SystemBossAI);
                BossAICachingMgr.LoadBossAICachingItems(GameManager.SystemBossAI);
                result = ret;
            }
            return(result);
        }
예제 #2
0
        /// <summary>
        /// 加载BossAI文件
        /// </summary>
        /// <returns></returns>
        private static int ReloadXmlFile_config_bossAI()
        {
            int ret = GameManager.SystemBossAI.ReloadLoadFromXMlFile();

            if (ret < 0)
            {
                return(ret);
            }

            //初始化BossAI的公式列表
            GameManager.SystemMagicActionMgr.ParseBossAIActions(GameManager.SystemBossAI);

            //使用双键值缓存boss AI项
            BossAICachingMgr.LoadBossAICachingItems(GameManager.SystemBossAI);

            return(ret);
        }