public override XElement Serialize() { AssertImpl(); XElement E = base.Serialize(); E.Add(impl.Serialize()); return(E); }
public override XElement Serialize() { if (component is UnserializedComponent) { return(((UnserializedComponent)component).Data); } XElement X = base.Serialize(); X.SetAttributeValue("Rotation", Rotation); X.SetAttributeValue("Flip", Flip); X.SetAttributeValue("Position", Position); X.Add(component.Serialize()); return(X); }