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 diff
     1.1 --- a/api/Savers/IWarFoundryFileSaver.cs	Sat Mar 05 15:38:54 2011 +0000
     1.2 +++ b/api/Savers/IWarFoundryFileSaver.cs	Sat Mar 05 15:51:24 2011 +0000
     1.3 @@ -13,5 +13,7 @@
     1.4  	public interface IWarFoundryFileSaver
     1.5  	{
     1.6  		bool Save(string path, params WarFoundryLoadedObject[] objects);
     1.7 +		
     1.8 +		string GetFileExtension (WarFoundryLoadedObject obj);
     1.9  	}
    1.10  }
     2.1 --- a/api/Savers/Xml/WarFoundryXmlFileSaver.cs	Sat Mar 05 15:38:54 2011 +0000
     2.2 +++ b/api/Savers/Xml/WarFoundryXmlFileSaver.cs	Sat Mar 05 15:51:24 2011 +0000
     2.3 @@ -33,5 +33,10 @@
     2.4  			ZipEntry entry = new ZipEntry(obj.ID);
     2.5  			zipStream.PutNextEntry(entry);
     2.6  		}
     2.7 +
     2.8 +		public string GetFileExtension (WarFoundryLoadedObject obj)
     2.9 +		{
    2.10 +			return "";
    2.11 +		}
    2.12  	}
    2.13  }