コード例 #1
0
        /// <summary>
        /// Unparses the given <see cref="ConditionalFlag"/>.
        /// </summary>
        /// <remarks>
        /// This method can be overidden to provide game-specific or newer-version unparsing.
        /// </remarks>
        /// <param name="p_flgFlag">The <see cref="ConditionalFlag"/> for which to generate XML.</param>
        /// <returns>The XML representation of the given <see cref="ConditionalFlag"/>.</returns>
        protected virtual XElement UnparseConditionalFlag(ConditionalFlag p_flgFlag)
        {
            XElement xelFlag = new XElement("flag",
                                            new XAttribute("name", p_flgFlag.Name));

            xelFlag.Value = p_flgFlag.ConditionalValue;
            return(xelFlag);
        }
コード例 #2
0
		/// <summary>
		/// Unparses the given <see cref="ConditionalFlag"/>.
		/// </summary>
		/// <remarks>
		/// This method can be overidden to provide game-specific or newer-version unparsing.
		/// </remarks>
		/// <param name="p_flgFlag">The <see cref="ConditionalFlag"/> for which to generate XML.</param>
		/// <returns>The XML representation of the given <see cref="ConditionalFlag"/>.</returns>
		protected virtual XElement UnparseConditionalFlag(ConditionalFlag p_flgFlag)
		{
			XElement xelFlag = new XElement("flag",
									new XAttribute("name", p_flgFlag.Name));
			xelFlag.Value = p_flgFlag.ConditionalValue;
			return xelFlag;
		}