diff --git a/SpriteLibrary/SpriteDatabase.cs b/SpriteLibrary/SpriteDatabase.cs index 44b316a..3954146 100644 --- a/SpriteLibrary/SpriteDatabase.cs +++ b/SpriteLibrary/SpriteDatabase.cs @@ -262,7 +262,7 @@ namespace SpriteLibrary /// to GetImageFromName /// A parameter stating whether we should cache the image in memory /// or simply retrieve it from the resource manager. - /// + /// The resource image with the specified name public Image GetImageFromName(string Name, bool UseSmartImages) { Image MyImage = null; @@ -296,7 +296,7 @@ namespace SpriteLibrary /// /// Return a list of the image names in the Properties.Resources /// - /// + /// A list of image names in the Properties.Resources public List GetImageNames() { List Names = new List(); @@ -342,7 +342,7 @@ namespace SpriteLibrary /// /// Load in an XML serialized item from the specified ResourceManager. You will usually make one of these by - /// creating an object and using SpriteDatabase.WriteToXmlFile to + /// creating an object and using SpriteDatabase.WriteToXmlFile to /// save it to a file on your desktop. Then you can drag and drop that file into your project and then use this /// LoadObjectFromXmlFile function. /// @@ -372,14 +372,14 @@ namespace SpriteLibrary /// /// Writes the given object instance to an XML file. - /// Only Public properties and variables will be written to the file. These can be any type though, even other classes. - /// If there are public properties/variables that you do not want written to the file, decorate them with the [XmlIgnore] attribute. - /// Object type must have a parameterless constructor. + /// Only Public properties and variables will be written to the file. These can be any type though, even other classes. + /// If there are public properties/variables that you do not want written to the file, decorate them with the [XmlIgnore] attribute. + /// Object type must have a parameterless constructor. /// /// The type of object being written to the file. /// The file path to write the object instance to. /// The object instance to write to the file. - internal static void WriteToXmlFile(string filePath, T objectToWrite) where T : new() + public static void WriteToXmlFile(string filePath, T objectToWrite) where T : new() { TextWriter writer = null; try diff --git a/SpriteLibrary/SpriteInfo.cs b/SpriteLibrary/SpriteInfo.cs index 7a312b5..b6522e6 100644 --- a/SpriteLibrary/SpriteInfo.cs +++ b/SpriteLibrary/SpriteInfo.cs @@ -97,7 +97,7 @@ namespace SpriteLibrary /// /// A generic cloning method that works when everything is public /// - /// + /// A clone of the specified AnimationInfo public AnimationInfo Clone() { return SpriteDatabase.CloneByXMLSerializing(this); @@ -136,7 +136,7 @@ namespace SpriteLibrary /// /// A generic cloning method that works when everything is public /// - /// + /// A duplicate of the sprite info. public SpriteInfo Clone() { return SpriteDatabase.CloneByXMLSerializing(this);