From 4f2d190b6c24b4cda24ec6d98bdcc19183a03483 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Sat, 16 Sep 2017 08:14:46 -0500 Subject: [PATCH] comment on save function --- SpriteLibrary/SpriteDatabase.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SpriteLibrary/SpriteDatabase.cs b/SpriteLibrary/SpriteDatabase.cs index 5e3475f..2872998 100644 --- a/SpriteLibrary/SpriteDatabase.cs +++ b/SpriteLibrary/SpriteDatabase.cs @@ -40,7 +40,14 @@ namespace SpriteLibrary LoadSpriteInfo(); } - internal void Save() + /// + /// Tell the database to save the sprite definitions. Use this while you are creating your game. + /// When you are done, you will usually want to take your sprite definition file and add it to the + /// resources of your game. The resources cannot be saved to, so you cannot continue to add new sprites + /// once you are loading and saving them from a resources file. But, the resources file is included with + /// the program when you build it. + /// + public void Save() { if(!DoesResourceExist(Filename)) {