Mercurial > repos > IBBoard.WarFoundry.API
changeset 320:4be289645c4f
Re #324: Add saving of Race and System data to files
* Add skeleton of method for file extensions when saving
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 05 Mar 2011 15:51:24 +0000 |
parents | 7187add280ed |
children | 2ba88d5fb881 |
files | api/Savers/IWarFoundryFileSaver.cs api/Savers/Xml/WarFoundryXmlFileSaver.cs |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/api/Savers/IWarFoundryFileSaver.cs Sat Mar 05 15:38:54 2011 +0000 +++ b/api/Savers/IWarFoundryFileSaver.cs Sat Mar 05 15:51:24 2011 +0000 @@ -13,5 +13,7 @@ public interface IWarFoundryFileSaver { bool Save(string path, params WarFoundryLoadedObject[] objects); + + string GetFileExtension (WarFoundryLoadedObject obj); } }
--- a/api/Savers/Xml/WarFoundryXmlFileSaver.cs Sat Mar 05 15:38:54 2011 +0000 +++ b/api/Savers/Xml/WarFoundryXmlFileSaver.cs Sat Mar 05 15:51:24 2011 +0000 @@ -33,5 +33,10 @@ ZipEntry entry = new ZipEntry(obj.ID); zipStream.PutNextEntry(entry); } + + public string GetFileExtension (WarFoundryLoadedObject obj) + { + return ""; + } } }