changeset 317:58cd0fa53976

Re #324: Add saving of Race and System data to files * Create initial skeleton of XML file saver
author IBBoard <dev@ibboard.co.uk>
date Sat, 05 Mar 2011 14:58:34 +0000
parents 40a2df1f629a
children 234b902397e6
files IBBoard.WarFoundry.API.csproj api/Savers/IWarFoundryFileSaver.cs api/Savers/Xml/WarFoundryXmlFileSaver.cs
diffstat 3 files changed, 21 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/IBBoard.WarFoundry.API.csproj	Sat Mar 05 11:52:09 2011 +0000
     1.2 +++ b/IBBoard.WarFoundry.API.csproj	Sat Mar 05 14:58:34 2011 +0000
     1.3 @@ -187,6 +187,7 @@
     1.4      <Compile Include="api\Objects\WarFoundryLoadedObject.cs" />
     1.5      <Compile Include="api\Savers\Xml\WarFoundryXmlArmySaver.cs" />
     1.6      <Compile Include="api\Savers\Xml\WarFoundryXmlGameSystemSaver.cs" />
     1.7 +    <Compile Include="api\Savers\Xml\WarFoundryXmlFileSaver.cs" />
     1.8    </ItemGroup>
     1.9    <ItemGroup>
    1.10      <Reference Include="System.Xml" />
    1.11 @@ -238,7 +239,7 @@
    1.12      <MonoDevelop>
    1.13        <Properties>
    1.14          <Policies>
    1.15 -          <DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedFlat" ResourceNamePolicy="FileFormatDefault" />
    1.16 +          <DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedHierarchical" ResourceNamePolicy="FileFormatDefault" />
    1.17          </Policies>
    1.18        </Properties>
    1.19      </MonoDevelop>
     2.1 --- a/api/Savers/IWarFoundryFileSaver.cs	Sat Mar 05 11:52:09 2011 +0000
     2.2 +++ b/api/Savers/IWarFoundryFileSaver.cs	Sat Mar 05 14:58:34 2011 +0000
     2.3 @@ -12,6 +12,6 @@
     2.4  	/// </summary>
     2.5  	public interface IWarFoundryFileSaver
     2.6  	{
     2.7 -		void Save(string path, params WarFoundryLoadedObject[] objects);
     2.8 +		bool Save(string path, params WarFoundryLoadedObject[] objects);
     2.9  	}
    2.10  }
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/api/Savers/Xml/WarFoundryXmlFileSaver.cs	Sat Mar 05 14:58:34 2011 +0000
     3.3 @@ -0,0 +1,18 @@
     3.4 +using System;
     3.5 +using IBBoard.WarFoundry.API.Savers;
     3.6 +using IBBoard.WarFoundry.API.Objects;
     3.7 +
     3.8 +namespace IBBoard.WarFoundry.API.Savers.Xml
     3.9 +{
    3.10 +	public class WarFoundryXmlFileSaver : IWarFoundryFileSaver
    3.11 +	{
    3.12 +		public WarFoundryXmlFileSaver()
    3.13 +		{
    3.14 +		}
    3.15 +
    3.16 +		public bool Save (string path, params WarFoundryLoadedObject[] objects)
    3.17 +		{
    3.18 +			return true;
    3.19 +		}
    3.20 +	}
    3.21 +}