public static FLVER2MaterialInfoBank ReadFromXML(string xmlFile)
        {
            var bank = new FLVER2MaterialInfoBank();

            bank.ReadXML(xmlFile);
            return(bank);
        }
Example #2
0
        private static void LoadMaterialInfoBankForGame(SoulsGames g)
        {
            if (MaterialInfoBankPerGame.ContainsKey(g))
            {
                return;
            }
            //string xmlPath = Path.Combine(SapUtils.AssemblyDirectory, string.Format(BANK_RESOURCE_PATH, g.ToString()));
            string xmlPath = string.Format(BANK_RESOURCE_PATH, g.ToString());

            if (File.Exists(xmlPath))
            {
                var bank = FLVER2MaterialInfoBank.ReadFromXML(xmlPath);
                MaterialInfoBankPerGame.Add(g, bank);
            }
        }