WikiFunctions.AWBSettings.UserPrefs.SavePluginSettings C# (CSharp) Method

SavePluginSettings() public static method

Saves the plugin Settings
public static SavePluginSettings ( UserPrefs prefs ) : List
prefs UserPrefs UserPrefs object
return List
        public static List<Type> SavePluginSettings(UserPrefs prefs)
        {
            List<Type> types = new List<Type>();
            /* Find out what types the plugins are using for their settings so we can
               add them to the Serializer. The plugin author must ensure s(he) is using
               serializable types.*/

            foreach (PluginPrefs pl in prefs.Plugin)
            {
                if ((pl.PluginSettings != null) && (pl.PluginSettings.Length >= 1))
                {
                    foreach (object pl2 in pl.PluginSettings)
                    {
                        types.Add(pl2.GetType());
                    }
                }
            }
            return types;
        }