예제 #1
0
 static void TestMacht(Universe Universe)
 {
     ManifestData d = new ManifestData(Universe);
     d.SetWriter("test.xml");
     d.Writer.WriteStartElement("test");
     foreach (var item in Universe.Talente)
     {
         if (item.Name.Contains("Macht"))
         {
             foreach (var f in Universe.Fertigkeiten)
             {
                 if (item.Bedingung.ToString().Contains(f.Name))
                 {
                     Technik t = Technik.CreateMacht(item, f);
                     t.Write(d);
                 }
             }
         }
     }
     d.Writer.WriteEndElement();
     d.Writer.Close();
 }