protected void WriteList(ManifestData Data, IEnumerable<Element> list, string listName, string itemName) { Data.Writer.WriteStartElement(listName); foreach (var item in list) Data.WriteElement(itemName, "name", item.Name); Data.Writer.WriteEndElement(); }
public override void Write(ManifestData Data) { Data.WriteElement(xmlName, "rasse", Rasse != null ? Rasse.Name : "", "bachelor", Bachelor != null ? Bachelor.Name : "", "master", Master != null ? Master.Name : "" ); }
public override void Write(ManifestData Data) { Data.WriteElement(xmlName, "attribute", Attribute.ToDataString()); }
public override void Write(ManifestData Data) { Data.WriteElement(xmlName, "mann", Mann.ToString(), "hintergrund", Hintergrund, "konfession", Konfession, "geburtsort", Geburtsort, "vergangenheiten", Vergangenheiten.SumText(", "), "augenfarbe", Augenfarbe.ToArgb().ToString("x"), "hautfarbe", Hautfarbe.ToArgb().ToString("x"), "haarfarbe", Haarfarbe.ToArgb().ToString("x"), "portrait", Portrait, "namen", Names.SumText(", "), "radius", Radius, "hohe", Hohe, "alter", Alter, "geburtstag", Geburtstag ); }