示例#1
0
        /// <inheritdoc/>
        public override void Assign(Base source)
        {
            base.Assign(source);

            ShapeObject src = source as ShapeObject;

            Shape = src.Shape;
            Curve = src.Curve;
        }
示例#2
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            Border.SimpleBorder = true;
            base.Serialize(writer);
            ShapeObject c = writer.DiffObject as ShapeObject;

            if (Shape != c.Shape)
            {
                writer.WriteValue("Shape", Shape);
            }
            if (Curve != c.Curve)
            {
                writer.WriteFloat("Curve", Curve);
            }
        }