Esempio n. 1
0
 public void WriteXml(XmlWriter writer)
 {
     writer.WriteAttributeString("Type", "Container");
     writer.WriteStartElement("HoldedRessource");
     ressource.WriteXml(writer);
     writer.WriteEndElement();
 }
Esempio n. 2
0
 public void WriteXml(XmlWriter writer)
 {
     writer.WriteAttributeString("Type", "Generator");
     writer.WriteAttributeString("Speed", timeToProduce.ToString());
     writer.WriteAttributeString("LastProd", timeSinceLastProduction.ToString());
     writer.WriteStartElement("GeneratedRessource");
     ressource.WriteXml(writer);
     writer.WriteEndElement();
 }