Beispiel #1
0
        public override string ToString()
        {
            var meString = new StringBuilder();

            meString.AppendLine("Prerequisites:");
            meString.AppendLine(String.Format("Level: {0}", MinimumLevel.ToString()));
            meString.AppendLine(MinimumStats.ToVerticalString(true));

            return(meString.ToString());
        }
Beispiel #2
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("Ownership/Owner", true, out subEle);
            Owner.WriteXML(subEle, master);

            ele.TryPathTo("Ownership/Rank", true, out subEle);
            subEle.Value = OwnerRank.ToString();

            ele.TryPathTo("MinimumLevel", true, out subEle);
            subEle.Value = MinimumLevel.ToString();

            ele.TryPathTo("Flags", true, out subEle);
            subEle.Value = Flags.ToString();

            WriteUnusedXML(ele, master);
        }