Example #1
0
        public static void AddShapeCollection(string fileName)
        {
            if (mShapeCollection != null)
            {
                mShapeCollection.RemoveFromManagers();
            }

            ShapeCollectionSave scs = ShapeCollectionSave.FromFile(fileName);

            mShapeCollection = scs.ToShapeCollection();
            mShapeCollection.AddToManagers();
        }
        protected override TRead Read(ContentReader input, TRead existingInstance)
        {
            if (existingInstance != null)
            {
                return(existingInstance);
            }

            ShapeCollectionSave shapeCollectionSave = ObjectReader.ReadObject <FlatRedBall.Content.Math.Geometry.ShapeCollectionSave>(input);

            shapeCollectionSave.FileName = input.AssetName;

            return(shapeCollectionSave.ToShapeCollection());
        }