Engines/FlatRedBallXNA/FlatRedBall/Content/Math/Geometry/ShapeCollectionSave.cs
/// <summary>
/// Deserializes a file into a new ShapeCollectionSave and returns it.
/// </summary>
/// <param name="fileName">The absolute or relative file name. If the file name is relative, then the FileManager's RelativeDirectory will be used.</param>
/// <returns>The newly-created ShapeCollectionSave.</returns>
Deserializes a file into a new ShapeCollectionSave and returns it.
Deserializes a file into a new ShapeCollectionSave and returns it .
public static ShapeCollectionSave FromFile(string fileName)
        {
            ShapeCollectionSave shapeSaveCollection =
                FileManager.XmlDeserialize<ShapeCollectionSave>(fileName);
            shapeSaveCollection.mFileName = fileName;
            return shapeSaveCollection;
        }
public static ShapeCollectionSave FromFile ( string fileName ) { ShapeCollectionSave shapeSaveCollection = FileManager . XmlDeserialize < ShapeCollectionSave > ( fileName ) ; shapeSaveCollection . mFileName = fileName ; return shapeSaveCollection ; }
Deserializes a file into a new ShapeCollectionSave and returns it.
Deserializes a file into a new ShapeCollectionSave and returns it .
The newly-created ShapeCollectionSave.
The newly - created ShapeCollectionSave .
fileName
string
The absolute or relative file name. If the file name is relative, then the FileManager's RelativeDirectory will be used.
The absolute or relative file name . If the file name is relative then the FileManager ' s RelativeDirectory will be used .