Esempio n. 1
0
        public static bool ReloadMapNPCRoles(int mapCode)
        {
            string fileName = string.Format("Map/{0}/npcs.xml", mapCode);

            GeneralCachingXmlMgr.Reload(Global.ResPath(fileName));
            GameManager.SystemNPCsMgr.ReloadLoadFromXMlFile();
            GameMap gameMap = GameManager.MapMgr.DictMaps[mapCode];

            return(NPCGeneralManager.LoadMapNPCRoles(mapCode, gameMap));
        }