예제 #1
0
        public static void SaveXMLBust(ParamBustCustom bust, string path)
        {
            XMLParamBust xml = new XMLParamBust(bust);

            using (FileStream fs = new FileStream(path, FileMode.Create, FileAccess.Write))
                using (StreamWriter sw = new StreamWriter(fs))
                {
                    xml.Serialize(sw);
                }
        }
예제 #2
0
        private static bool LoadXMLBust_ver2(ParamBustCustom bust, string path)
        {
            XMLParamBust xml_ver2 = new XMLParamBust();

            using (StreamReader reader = new System.IO.StreamReader(path))
            {
                if (!xml_ver2.Deserialize(reader))
                {
                    return(false);
                }
            }
            xml_ver2.CopyParams(bust);
            return(true);
        }