Beispiel #1
0
        public static void SerializeToXML(CacheUnitIDs settings)
        {
            // Type[] Settings=new Type[] {typeof(SettingCluster),typeof(SettingFleeing),typeof(SettingGrouping),typeof(SettingItemRules),typeof(SettingLoot),typeof(SettingRanges) };
            XmlSerializer serializer = new XmlSerializer(typeof(CacheUnitIDs));
            StreamWriter  textWriter = new StreamWriter(DefaultFilePath);

            serializer.Serialize(textWriter, settings);
            textWriter.Close();
        }
Beispiel #2
0
 public static void SerializeToXML(CacheUnitIDs settings)
 {
     // Type[] Settings=new Type[] {typeof(SettingCluster),typeof(SettingFleeing),typeof(SettingGrouping),typeof(SettingItemRules),typeof(SettingLoot),typeof(SettingRanges) };
     XmlSerializer serializer = new XmlSerializer(typeof(CacheUnitIDs));
     StreamWriter textWriter = new StreamWriter(DefaultFilePath);
     serializer.Serialize(textWriter, settings);
     textWriter.Close();
 }