コード例 #1
0
        public override XElement Serialize()
        {
            AssertImpl();
            XElement E = base.Serialize();

            E.Add(impl.Serialize());
            return(E);
        }
コード例 #2
0
        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);
        }