private void writeEnemyZone(XmlTextWriter writer, EnemySpawnZone esz) { writer.WriteStartElement("enemySpawnZone"); writer.WriteAttributeString("zone", esz.getZone().toXML()); writer.WriteAttributeString("enemy", esz.getEnemyName()); writer.WriteAttributeString("count", esz.getTotalSpawns().ToString()); writer.WriteEndElement(); }