Пример #1
0
		/// <summary>
		/// A simple constructor that initializes the object with the given values.
		/// </summary>
		/// <param name="p_xelScript">The xml script file.</param>
		/// <param name="p_xstXmlScriptType">The <see cref="XmlScriptType"/> that describes
		/// XML script type metadata.</param>
		public Parser(XElement p_xelScript, XmlScriptType p_xstXmlScriptType)
		{
			Script = p_xelScript;
			ScriptType = p_xstXmlScriptType;
			if ((p_xelScript.GetSchemaInfo() == null) || (p_xelScript.GetSchemaInfo().Validity != XmlSchemaValidity.Valid))
				p_xstXmlScriptType.ValidateXmlScript(p_xelScript);
		}
Пример #2
0
 /// <summary>
 /// A simple constructor that initializes the object with the given values.
 /// </summary>
 /// <param name="p_xelScript">The xml script file.</param>
 /// <param name="p_xstXmlScriptType">The <see cref="XmlScriptType"/> that describes
 /// XML script type metadata.</param>
 public Parser(XElement p_xelScript, XmlScriptType p_xstXmlScriptType)
 {
     Script     = p_xelScript;
     ScriptType = p_xstXmlScriptType;
     if ((p_xelScript.GetSchemaInfo() == null) || (p_xelScript.GetSchemaInfo().Validity != XmlSchemaValidity.Valid))
     {
         p_xstXmlScriptType.ValidateXmlScript(p_xelScript);
     }
 }
        /// <summary>
        /// A simple constructor that initializes the object with the given values.
        /// </summary>
        /// <param name="p_xstScriptType">The type of the script being edited.</param>
        /// <param name="p_lstModFiles">The list of files that are in the <see cref="XmlScript"/>'s mod.</param>
        public XmlScriptTreeEditorVM(XmlScriptType p_xstScriptType, IList <VirtualFileSystemItem> p_lstModFiles)
            : base(p_xstScriptType)
        {
            ModFiles = p_lstModFiles;

            SetSupportedCommands();

            AddInstallStepCommand = new Command <XmlScript>("Add Install Step", "Adds a new Install Step.", AddInstallStep, false);
            AddOptionGroupCommand = new Command <InstallStep>("Add Option Group", "Adds a new Option Group.", AddOptionGroup, false);
            AddOptionCommand      = new Command <OptionGroup>("Add Option", "Add a new Option.", AddOption, false);
            AddConditionallyInstalledFileSetCommand = new Command <IList <ConditionallyInstalledFileSet> >("Add Conditionally Installed File Set", "Add a new Conditionally Installed File Set.", AddConditionallyInstalledFileSet, false);

            DeleteInstallStepCommand = new Command <InstallStep>("Delete Install Step", "Deletes the selected Install Step.", DeleteInstallStep, false);
            DeleteOptionGroupCommand = new Command <OptionGroup>("Delete Option Group", "Deletes the selected Option Group.", DeleteOptionGroup, false);
            DeleteOptionCommand      = new Command <Option>("Delete Option", "Deletes the selected Option.", DeleteOption, false);
            DeleteConditionallyInstalledFileSetCommand = new Command <ConditionallyInstalledFileSet>("Delete Conditionally Installed File Set", "Deletes the selected Conditionally Installed File Set.", DeleteConditionallyInstalledFileSet, false);
        }
 /// <summary>
 /// A simple constructor that initializes the object with the given values.
 /// </summary>
 /// <param name="p_xelScript">The xmlscript file.</param>
 /// <param name="p_xstXmlScriptType">The <see cref="XmlScriptType"/> that describes
 /// XML script type metadata.</param>
 public Fallout3Parser30(XElement p_xelScript, XmlScriptType p_xstXmlScriptType)
     : base(p_xelScript, p_xstXmlScriptType)
 {
 }
 /// <summary>
 /// A simple constructor that initializes the object with the given values.
 /// </summary>
 /// <param name="p_xstScripType">The current xml script type.</param>
 public XmlScript50NodeAdapter(XmlScriptType p_xstScripType)
 {
     ScriptType = p_xstScripType;
 }
Пример #6
0
		/// <summary>
		/// A simple constructor that initializes the object with the given values.
		/// </summary>
		/// <param name="p_xelScript">The xmlscript file.</param>
		/// <param name="p_xstXmlScriptType">The <see cref="XmlScriptType"/> that describes
		/// XML script type metadata.</param>
		public Parser40(XElement p_xelScript, XmlScriptType p_xstXmlScriptType)
			: base(p_xelScript, p_xstXmlScriptType)
		{
		}
 /// <summary>
 /// A simple constructor that initializes the object with the given values.
 /// </summary>
 /// <param name="p_xelScript">The xmlscript file.</param>
 /// <param name="p_xstXmlScriptType">The <see cref="XmlScriptType"/> that describes
 /// XML script type metadata.</param>
 public Parser40(XElement p_xelScript, XmlScriptType p_xstXmlScriptType)
     : base(p_xelScript, p_xstXmlScriptType)
 {
 }
		/// <summary>
		/// A simple constructor that initializes the object with the given values.
		/// </summary>
		/// <param name="p_xstScripType">The current xml script type.</param>
		public XmlScript50NodeAdapter(XmlScriptType p_xstScripType)
		{
			ScriptType = p_xstScripType;
		}
 /// <summary>
 /// A simple constructor that initializes the object with the given values.
 /// </summary>
 /// <param name="p_xelScript">The xmlscript file.</param>
 /// <param name="p_xstXmlScriptType">The <see cref="XmlScriptType"/> that describes
 /// XML script type metadata.</param>
 public SkyrimParser50(XElement p_xelScript, XmlScriptType p_xstXmlScriptType)
     : base(p_xelScript, p_xstXmlScriptType)
 {
 }
 /// <summary>
 /// A simple constructor that initializes the object with the given values.
 /// </summary>
 /// <param name="p_xstScripType">The current xml script type.</param>
 public XmlScript40NodeAdapter(XmlScriptType p_xstScripType)
     : base(p_xstScripType)
 {
 }
		/// <summary>
		/// A simple constructor that initializes the object with the required dependencies
		/// </summary>
		/// <param name="p_xstScriptType">The type of the script being edited.</param>
		public XmlScriptTreeViewVM(XmlScriptType p_xstScriptType)
		{
			ScriptType = p_xstScriptType;
		}
		/// <summary>
		/// A simple constructor that initializes the object with the given values.
		/// </summary>
		/// <param name="p_xstScriptType">The type of the script being edited.</param>
		/// <param name="p_lstModFiles">The list of files that are in the <see cref="XmlScript"/>'s mod.</param>
		public XmlScriptTreeEditorVM(XmlScriptType p_xstScriptType, IList<VirtualFileSystemItem> p_lstModFiles)
			: base(p_xstScriptType)
		{
			ModFiles = p_lstModFiles;

			SetSupportedCommands();

			AddInstallStepCommand = new Command<XmlScript>("Add Install Step", "Adds a new Install Step.", AddInstallStep, false);
			AddOptionGroupCommand = new Command<InstallStep>("Add Option Group", "Adds a new Option Group.", AddOptionGroup, false);
			AddOptionCommand = new Command<OptionGroup>("Add Option", "Add a new Option.", AddOption, false);
			AddConditionallyInstalledFileSetCommand = new Command<IList<ConditionallyInstalledFileSet>>("Add Conditionally Installed File Set", "Add a new Conditionally Installed File Set.", AddConditionallyInstalledFileSet, false);

			DeleteInstallStepCommand = new Command<InstallStep>("Delete Install Step", "Deletes the selected Install Step.", DeleteInstallStep, false);
			DeleteOptionGroupCommand = new Command<OptionGroup>("Delete Option Group", "Deletes the selected Option Group.", DeleteOptionGroup, false);
			DeleteOptionCommand = new Command<Option>("Delete Option", "Deletes the selected Option.", DeleteOption, false);
			DeleteConditionallyInstalledFileSetCommand = new Command<ConditionallyInstalledFileSet>("Delete Conditionally Installed File Set", "Deletes the selected Conditionally Installed File Set.", DeleteConditionallyInstalledFileSet, false);
		}
 /// <summary>
 /// A simple constructor that initializes the object with the required dependencies
 /// </summary>
 /// <param name="p_xstScriptType">The type of the script being edited.</param>
 public XmlScriptTreeViewVM(XmlScriptType p_xstScriptType)
 {
     ScriptType = p_xstScriptType;
 }