public override void Save(XmlTextWriter writer) { writer.WriteStartElement("Effect"); if (EntityId != null) { writer.WriteAttributeString("entity", EntityId); } EffectNode.WriteTo(writer); writer.WriteEndElement(); }