2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
|
|
|
* This program is released under GNU General Public License
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Namespaces
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Globalization;
|
|
|
|
using System.Text;
|
|
|
|
using CodeImp.DoomBuilder.IO;
|
|
|
|
using CodeImp.DoomBuilder.Data;
|
|
|
|
using System.IO;
|
|
|
|
using CodeImp.DoomBuilder.Editing;
|
|
|
|
using System.Collections.Specialized;
|
2012-11-02 23:11:38 +00:00
|
|
|
using CodeImp.DoomBuilder.GZBuilder.Data;
|
2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Config
|
|
|
|
{
|
2012-06-01 19:53:14 +00:00
|
|
|
public class ConfigurationInfo : IComparable<ConfigurationInfo>
|
2009-04-19 18:07:22 +00:00
|
|
|
{
|
|
|
|
#region ================== Constants
|
|
|
|
|
|
|
|
private const string MODE_DISABLED_KEY = "disabled";
|
|
|
|
private const string MODE_ENABLED_KEY = "enabled";
|
|
|
|
|
|
|
|
// The { and } are invalid key names in a configuration so this ensures this string is unique
|
|
|
|
private const string MISSING_NODEBUILDER = "{missing nodebuilder}";
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Variables
|
|
|
|
|
|
|
|
private string name;
|
|
|
|
private string filename;
|
|
|
|
private string settingskey;
|
|
|
|
private string defaultlumpname;
|
|
|
|
private string nodebuildersave;
|
|
|
|
private string nodebuildertest;
|
|
|
|
private DataLocationList resources;
|
2012-11-02 23:11:38 +00:00
|
|
|
//private string testprogram; //mxd
|
|
|
|
//private string testparameters;
|
|
|
|
//private bool testshortpaths;
|
|
|
|
//private bool customparameters;
|
|
|
|
//private int testskill;
|
|
|
|
private List<EngineInfo> testEngines;
|
|
|
|
private int currentEngineIndex;
|
|
|
|
|
2009-04-19 18:07:22 +00:00
|
|
|
private List<ThingsFilter> thingsfilters;
|
|
|
|
private List<DefinedTextureSet> texturesets;
|
|
|
|
private Dictionary<string, bool> editmodes;
|
2009-07-09 15:15:49 +00:00
|
|
|
private string startmode;
|
2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Properties
|
|
|
|
|
|
|
|
public string Name { get { return name; } }
|
|
|
|
public string Filename { get { return filename; } }
|
|
|
|
public string DefaultLumpName { get { return defaultlumpname; } }
|
2012-06-01 19:53:14 +00:00
|
|
|
public string NodebuilderSave { get { return nodebuildersave; } internal set { nodebuildersave = value; } }
|
|
|
|
public string NodebuilderTest { get { return nodebuildertest; } internal set { nodebuildertest = value; } }
|
|
|
|
internal DataLocationList Resources { get { return resources; } }
|
2012-11-02 23:11:38 +00:00
|
|
|
|
|
|
|
//mxd
|
|
|
|
public string TestProgramName { get { return testEngines[currentEngineIndex].TestProgramName; } internal set { testEngines[currentEngineIndex].TestProgramName = value; } }
|
|
|
|
public string TestProgram { get { return testEngines[currentEngineIndex].TestProgram; } internal set { testEngines[currentEngineIndex].TestProgram = value; } }
|
|
|
|
public string TestParameters { get { return testEngines[currentEngineIndex].TestParameters; } internal set { testEngines[currentEngineIndex].TestParameters = value; } }
|
|
|
|
public bool TestShortPaths { get { return testEngines[currentEngineIndex].TestShortPaths; } internal set { testEngines[currentEngineIndex].TestShortPaths = value; } }
|
|
|
|
public int TestSkill { get { return testEngines[currentEngineIndex].TestSkill; } internal set { testEngines[currentEngineIndex].TestSkill = value; } }
|
|
|
|
public bool CustomParameters { get { return testEngines[currentEngineIndex].CustomParameters; } internal set { testEngines[currentEngineIndex].CustomParameters = value; } }
|
|
|
|
//public string TestProgram { get { return testprogram; } internal set { testprogram = value; } }
|
|
|
|
//public string TestParameters { get { return testparameters; } internal set { testparameters = value; } }
|
|
|
|
//public bool TestShortPaths { get { return testshortpaths; } internal set { testshortpaths = value; } }
|
|
|
|
//public int TestSkill { get { return testskill; } internal set { testskill = value; } }
|
|
|
|
//public bool CustomParameters { get { return customparameters; } internal set { customparameters = value; } }
|
|
|
|
public List<EngineInfo> TestEngines { get { return testEngines; } internal set { testEngines = value; } }
|
|
|
|
//public EngineInfo CurrentTestEngine { get { return testEngines[currentEngineIndex]; } }
|
|
|
|
public int CurrentEngineIndex { get { return currentEngineIndex; } internal set { currentEngineIndex = value; } }
|
|
|
|
|
2009-04-19 18:07:22 +00:00
|
|
|
internal ICollection<ThingsFilter> ThingsFilters { get { return thingsfilters; } }
|
2012-06-01 19:53:14 +00:00
|
|
|
internal List<DefinedTextureSet> TextureSets { get { return texturesets; } }
|
2009-04-19 18:07:22 +00:00
|
|
|
internal Dictionary<string, bool> EditModes { get { return editmodes; } }
|
2009-07-09 15:15:49 +00:00
|
|
|
public string StartMode { get { return startmode; } internal set { startmode = value; } }
|
2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Constructor / Disposer
|
|
|
|
|
|
|
|
// Constructor
|
2012-06-01 19:53:14 +00:00
|
|
|
internal ConfigurationInfo(Configuration cfg, string filename)
|
2009-04-19 18:07:22 +00:00
|
|
|
{
|
|
|
|
// Initialize
|
|
|
|
this.filename = filename;
|
|
|
|
this.settingskey = Path.GetFileNameWithoutExtension(filename).ToLower();
|
|
|
|
|
|
|
|
// Load settings from game configuration
|
|
|
|
this.name = cfg.ReadSetting("game", "<unnamed game>");
|
|
|
|
this.defaultlumpname = cfg.ReadSetting("defaultlumpname", "");
|
|
|
|
|
|
|
|
// Load settings from program configuration
|
|
|
|
this.nodebuildersave = General.Settings.ReadSetting("configurations." + settingskey + ".nodebuildersave", MISSING_NODEBUILDER);
|
|
|
|
this.nodebuildertest = General.Settings.ReadSetting("configurations." + settingskey + ".nodebuildertest", MISSING_NODEBUILDER);
|
2012-11-02 23:11:38 +00:00
|
|
|
//mxd
|
|
|
|
//this.testprogram = General.Settings.ReadSetting("configurations." + settingskey + ".testprogram", "");
|
|
|
|
//this.testparameters = General.Settings.ReadSetting("configurations." + settingskey + ".testparameters", "");
|
|
|
|
//this.testshortpaths = General.Settings.ReadSetting("configurations." + settingskey + ".testshortpaths", false);
|
|
|
|
//this.customparameters = General.Settings.ReadSetting("configurations." + settingskey + ".customparameters", false);
|
|
|
|
//this.testskill = General.Settings.ReadSetting("configurations." + settingskey + ".testskill", 3);
|
2009-04-19 18:07:22 +00:00
|
|
|
this.resources = new DataLocationList(General.Settings.Config, "configurations." + settingskey + ".resources");
|
2009-07-09 15:15:49 +00:00
|
|
|
this.startmode = General.Settings.ReadSetting("configurations." + settingskey + ".startmode", "VerticesMode");
|
2009-04-19 18:07:22 +00:00
|
|
|
|
2012-11-02 23:11:38 +00:00
|
|
|
//mxd. read test engines
|
|
|
|
testEngines = new List<EngineInfo>();
|
|
|
|
IDictionary list = General.Settings.ReadSetting("configurations." + settingskey + ".engines", new ListDictionary());
|
|
|
|
currentEngineIndex = General.Settings.ReadSetting("configurations." + settingskey + ".currentengineindex", 0);
|
|
|
|
|
|
|
|
//no engine list found? use old engine properties
|
|
|
|
if (list.Count == 0) {
|
|
|
|
EngineInfo info = new EngineInfo();
|
|
|
|
info.TestProgram = General.Settings.ReadSetting("configurations." + settingskey + ".testprogram", "");
|
|
|
|
info.TestProgramName = General.Settings.ReadSetting("configurations." + settingskey + ".testprogramname", EngineInfo.DEFAULT_ENGINE_NAME);
|
|
|
|
info.CheckProgramName(false);
|
|
|
|
info.TestParameters = General.Settings.ReadSetting("configurations." + settingskey + ".testparameters", "");
|
|
|
|
info.TestShortPaths = General.Settings.ReadSetting("configurations." + settingskey + ".testshortpaths", false);
|
|
|
|
info.CustomParameters = General.Settings.ReadSetting("configurations." + settingskey + ".customparameters", false);
|
|
|
|
info.TestSkill = General.Settings.ReadSetting("configurations." + settingskey + ".testskill", 3);
|
|
|
|
testEngines.Add(info);
|
|
|
|
currentEngineIndex = 0;
|
|
|
|
} else {
|
|
|
|
//read engines settings from config
|
|
|
|
foreach (DictionaryEntry de in list) {
|
|
|
|
string path = "configurations." + settingskey + ".engines." + de.Key;
|
|
|
|
EngineInfo info = new EngineInfo();
|
|
|
|
info.TestProgram = General.Settings.ReadSetting(path + ".testprogram", "");
|
|
|
|
info.TestProgramName = General.Settings.ReadSetting(path + ".testprogramname", EngineInfo.DEFAULT_ENGINE_NAME);
|
|
|
|
info.CheckProgramName(false);
|
|
|
|
info.TestParameters = General.Settings.ReadSetting(path + ".testparameters", "");
|
|
|
|
info.TestShortPaths = General.Settings.ReadSetting(path + ".testshortpaths", false);
|
|
|
|
info.CustomParameters = General.Settings.ReadSetting(path + ".customparameters", false);
|
|
|
|
info.TestSkill = General.Settings.ReadSetting(path + ".testskill", 3);
|
|
|
|
testEngines.Add(info);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-04-19 18:07:22 +00:00
|
|
|
// Make list of things filters
|
|
|
|
thingsfilters = new List<ThingsFilter>();
|
|
|
|
IDictionary cfgfilters = General.Settings.ReadSetting("configurations." + settingskey + ".thingsfilters", new Hashtable());
|
|
|
|
foreach(DictionaryEntry de in cfgfilters)
|
|
|
|
{
|
|
|
|
thingsfilters.Add(new ThingsFilter(General.Settings.Config, "configurations." + settingskey + ".thingsfilters." + de.Key));
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make list of texture sets
|
|
|
|
texturesets = new List<DefinedTextureSet>();
|
|
|
|
IDictionary sets = General.Settings.ReadSetting("configurations." + settingskey + ".texturesets", new Hashtable());
|
|
|
|
foreach(DictionaryEntry de in sets)
|
|
|
|
{
|
|
|
|
texturesets.Add(new DefinedTextureSet(General.Settings.Config, "configurations." + settingskey + ".texturesets." + de.Key));
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make list of edit modes
|
|
|
|
this.editmodes = new Dictionary<string, bool>();
|
|
|
|
IDictionary modes = General.Settings.ReadSetting("configurations." + settingskey + ".editmodes", new Hashtable());
|
|
|
|
foreach(DictionaryEntry de in modes)
|
|
|
|
{
|
|
|
|
if(de.Key.ToString().StartsWith(MODE_ENABLED_KEY))
|
|
|
|
editmodes.Add(de.Value.ToString(), true);
|
|
|
|
else if(de.Key.ToString().StartsWith(MODE_DISABLED_KEY))
|
|
|
|
editmodes.Add(de.Value.ToString(), false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Constructor
|
|
|
|
private ConfigurationInfo()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Methods
|
|
|
|
|
2012-06-01 19:53:14 +00:00
|
|
|
/// <summary>
|
|
|
|
/// This returns the resource locations as configured.
|
|
|
|
/// </summary>
|
|
|
|
public DataLocationList GetResources()
|
|
|
|
{
|
|
|
|
return new DataLocationList(resources);
|
|
|
|
}
|
|
|
|
|
2009-04-19 18:07:22 +00:00
|
|
|
// This compares it to other ConfigurationInfo objects
|
|
|
|
public int CompareTo(ConfigurationInfo other)
|
|
|
|
{
|
|
|
|
// Compare
|
|
|
|
return name.CompareTo(other.name);
|
|
|
|
}
|
|
|
|
|
|
|
|
// This saves the settings to program configuration
|
2012-06-01 19:53:14 +00:00
|
|
|
internal void SaveSettings()
|
2009-04-19 18:07:22 +00:00
|
|
|
{
|
|
|
|
// Write to configuration
|
|
|
|
General.Settings.WriteSetting("configurations." + settingskey + ".nodebuildersave", nodebuildersave);
|
|
|
|
General.Settings.WriteSetting("configurations." + settingskey + ".nodebuildertest", nodebuildertest);
|
2012-11-02 23:11:38 +00:00
|
|
|
//General.Settings.WriteSetting("configurations." + settingskey + ".testprogram", testprogram);
|
|
|
|
//General.Settings.WriteSetting("configurations." + settingskey + ".testparameters", testparameters);
|
|
|
|
//General.Settings.WriteSetting("configurations." + settingskey + ".testshortpaths", testshortpaths);
|
|
|
|
//General.Settings.WriteSetting("configurations." + settingskey + ".customparameters", customparameters);
|
|
|
|
//General.Settings.WriteSetting("configurations." + settingskey + ".testskill", testskill);
|
|
|
|
//mxd
|
|
|
|
General.Settings.WriteSetting("configurations." + settingskey + ".currentengineindex", currentEngineIndex);
|
|
|
|
for (int i = 0; i < testEngines.Count; i++ ) {
|
|
|
|
string path = "configurations." + settingskey + ".engines.engine" + i.ToString(CultureInfo.InvariantCulture);
|
|
|
|
General.Settings.WriteSetting(path + ".testprogramname", testEngines[i].TestProgramName);
|
|
|
|
General.Settings.WriteSetting(path + ".testprogram", testEngines[i].TestProgram);
|
|
|
|
General.Settings.WriteSetting(path + ".testparameters", testEngines[i].TestParameters);
|
|
|
|
General.Settings.WriteSetting(path + ".testshortpaths", testEngines[i].TestShortPaths);
|
|
|
|
General.Settings.WriteSetting(path + ".customparameters", testEngines[i].CustomParameters);
|
|
|
|
General.Settings.WriteSetting(path + ".testskill", testEngines[i].TestSkill);
|
|
|
|
}
|
|
|
|
|
2009-07-09 15:15:49 +00:00
|
|
|
General.Settings.WriteSetting("configurations." + settingskey + ".startmode", startmode);
|
2009-04-19 18:07:22 +00:00
|
|
|
resources.WriteToConfig(General.Settings.Config, "configurations." + settingskey + ".resources");
|
|
|
|
|
|
|
|
// Write filters to configuration
|
2010-10-03 10:03:56 +00:00
|
|
|
General.Settings.DeleteSetting("configurations." + settingskey + ".thingsfilters");
|
2009-04-19 18:07:22 +00:00
|
|
|
for(int i = 0; i < thingsfilters.Count; i++)
|
|
|
|
{
|
|
|
|
thingsfilters[i].WriteSettings(General.Settings.Config,
|
|
|
|
"configurations." + settingskey + ".thingsfilters.filter" + i.ToString(CultureInfo.InvariantCulture));
|
|
|
|
}
|
|
|
|
|
|
|
|
// Write texturesets to configuration
|
|
|
|
for(int i = 0; i < texturesets.Count; i++)
|
|
|
|
{
|
|
|
|
texturesets[i].WriteToConfig(General.Settings.Config,
|
|
|
|
"configurations." + settingskey + ".texturesets.set" + i.ToString(CultureInfo.InvariantCulture));
|
|
|
|
}
|
|
|
|
|
|
|
|
// Write filters to configuration
|
|
|
|
ListDictionary modeslist = new ListDictionary();
|
|
|
|
int index = 0;
|
|
|
|
foreach(KeyValuePair<string, bool> em in editmodes)
|
|
|
|
{
|
|
|
|
if(em.Value)
|
|
|
|
modeslist.Add(MODE_ENABLED_KEY + index.ToString(CultureInfo.InvariantCulture), em.Key);
|
|
|
|
else
|
|
|
|
modeslist.Add(MODE_DISABLED_KEY + index.ToString(CultureInfo.InvariantCulture), em.Key);
|
|
|
|
|
|
|
|
index++;
|
|
|
|
}
|
|
|
|
General.Settings.WriteSetting("configurations." + settingskey + ".editmodes", modeslist);
|
|
|
|
}
|
|
|
|
|
|
|
|
// String representation
|
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
// This clones the object
|
2012-06-01 19:53:14 +00:00
|
|
|
internal ConfigurationInfo Clone()
|
2009-04-19 18:07:22 +00:00
|
|
|
{
|
|
|
|
ConfigurationInfo ci = new ConfigurationInfo();
|
|
|
|
ci.name = this.name;
|
|
|
|
ci.filename = this.filename;
|
|
|
|
ci.settingskey = this.settingskey;
|
|
|
|
ci.nodebuildersave = this.nodebuildersave;
|
|
|
|
ci.nodebuildertest = this.nodebuildertest;
|
|
|
|
ci.resources = new DataLocationList();
|
|
|
|
ci.resources.AddRange(this.resources);
|
2012-11-02 23:11:38 +00:00
|
|
|
//mxd
|
|
|
|
/*ci.testprogram = this.testprogram;
|
2009-04-19 18:07:22 +00:00
|
|
|
ci.testparameters = this.testparameters;
|
|
|
|
ci.testshortpaths = this.testshortpaths;
|
|
|
|
ci.customparameters = this.customparameters;
|
2012-11-02 23:11:38 +00:00
|
|
|
ci.testskill = this.testskill;*/
|
|
|
|
ci.TestEngines = new List<EngineInfo>();
|
|
|
|
foreach (EngineInfo info in testEngines) ci.TestEngines.Add(new EngineInfo(info));
|
|
|
|
|
2009-07-09 15:15:49 +00:00
|
|
|
ci.startmode = this.startmode;
|
2009-04-19 18:07:22 +00:00
|
|
|
ci.texturesets = new List<DefinedTextureSet>();
|
|
|
|
foreach(DefinedTextureSet s in this.texturesets) ci.texturesets.Add(s.Copy());
|
|
|
|
ci.thingsfilters = new List<ThingsFilter>();
|
|
|
|
foreach(ThingsFilter f in this.thingsfilters) ci.thingsfilters.Add(new ThingsFilter(f));
|
|
|
|
ci.editmodes = new Dictionary<string, bool>(this.editmodes);
|
|
|
|
return ci;
|
|
|
|
}
|
|
|
|
|
|
|
|
// This applies settings from an object
|
2012-06-01 19:53:14 +00:00
|
|
|
internal void Apply(ConfigurationInfo ci)
|
2009-04-19 18:07:22 +00:00
|
|
|
{
|
|
|
|
this.name = ci.name;
|
|
|
|
this.filename = ci.filename;
|
|
|
|
this.settingskey = ci.settingskey;
|
|
|
|
this.nodebuildersave = ci.nodebuildersave;
|
|
|
|
this.nodebuildertest = ci.nodebuildertest;
|
|
|
|
this.resources = new DataLocationList();
|
|
|
|
this.resources.AddRange(ci.resources);
|
2012-11-02 23:11:38 +00:00
|
|
|
//mxd
|
|
|
|
/*this.testprogram = ci.testprogram;
|
2009-04-19 18:07:22 +00:00
|
|
|
this.testparameters = ci.testparameters;
|
|
|
|
this.testshortpaths = ci.testshortpaths;
|
|
|
|
this.customparameters = ci.customparameters;
|
2012-11-02 23:11:38 +00:00
|
|
|
this.testskill = ci.testskill;*/
|
|
|
|
this.testEngines = new List<EngineInfo>();
|
|
|
|
foreach (EngineInfo info in ci.TestEngines) testEngines.Add(new EngineInfo(info));
|
|
|
|
|
2009-07-09 15:15:49 +00:00
|
|
|
this.startmode = ci.startmode;
|
2009-04-19 18:07:22 +00:00
|
|
|
this.texturesets = new List<DefinedTextureSet>();
|
|
|
|
foreach(DefinedTextureSet s in ci.texturesets) this.texturesets.Add(s.Copy());
|
|
|
|
this.thingsfilters = new List<ThingsFilter>();
|
|
|
|
foreach(ThingsFilter f in ci.thingsfilters) this.thingsfilters.Add(new ThingsFilter(f));
|
|
|
|
this.editmodes = new Dictionary<string, bool>(ci.editmodes);
|
|
|
|
}
|
|
|
|
|
|
|
|
// This applies the defaults
|
2012-06-01 19:53:14 +00:00
|
|
|
internal void ApplyDefaults(GameConfiguration gameconfig)
|
2009-04-19 18:07:22 +00:00
|
|
|
{
|
|
|
|
// Some of the defaults can only be applied from game configuration
|
|
|
|
if(gameconfig != null)
|
|
|
|
{
|
|
|
|
// No nodebuildes set?
|
|
|
|
if(nodebuildersave == MISSING_NODEBUILDER) nodebuildersave = gameconfig.DefaultSaveCompiler;
|
|
|
|
if(nodebuildertest == MISSING_NODEBUILDER) nodebuildertest = gameconfig.DefaultTestCompiler;
|
|
|
|
|
|
|
|
// No texture sets?
|
|
|
|
if(texturesets.Count == 0)
|
|
|
|
{
|
|
|
|
// Copy the default texture sets from the game configuration
|
|
|
|
foreach(DefinedTextureSet s in gameconfig.TextureSets)
|
|
|
|
{
|
|
|
|
// Add a copy to our list
|
|
|
|
texturesets.Add(s.Copy());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// No things filters?
|
|
|
|
if(thingsfilters.Count == 0)
|
|
|
|
{
|
|
|
|
// Copy the things filters from game configuration
|
|
|
|
foreach(ThingsFilter f in gameconfig.ThingsFilters)
|
|
|
|
{
|
|
|
|
thingsfilters.Add(new ThingsFilter(f));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Go for all available editing modes
|
|
|
|
foreach(EditModeInfo info in General.Editing.ModesInfo)
|
|
|
|
{
|
|
|
|
// Is this a mode thats is optional?
|
|
|
|
if(info.IsOptional)
|
|
|
|
{
|
|
|
|
// Add if not listed yet
|
|
|
|
if(!editmodes.ContainsKey(info.Type.FullName))
|
|
|
|
editmodes.Add(info.Type.FullName, info.Attributes.UseByDefault);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
}
|