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 wrap: on
line diff
--- a/IBBoard.WarFoundry.API.csproj	Sat Mar 05 11:52:09 2011 +0000
+++ b/IBBoard.WarFoundry.API.csproj	Sat Mar 05 14:58:34 2011 +0000
@@ -187,6 +187,7 @@
     <Compile Include="api\Objects\WarFoundryLoadedObject.cs" />
     <Compile Include="api\Savers\Xml\WarFoundryXmlArmySaver.cs" />
     <Compile Include="api\Savers\Xml\WarFoundryXmlGameSystemSaver.cs" />
+    <Compile Include="api\Savers\Xml\WarFoundryXmlFileSaver.cs" />
   </ItemGroup>
   <ItemGroup>
     <Reference Include="System.Xml" />
@@ -238,7 +239,7 @@
     <MonoDevelop>
       <Properties>
         <Policies>
-          <DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedFlat" ResourceNamePolicy="FileFormatDefault" />
+          <DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedHierarchical" ResourceNamePolicy="FileFormatDefault" />
         </Policies>
       </Properties>
     </MonoDevelop>
--- a/api/Savers/IWarFoundryFileSaver.cs	Sat Mar 05 11:52:09 2011 +0000
+++ b/api/Savers/IWarFoundryFileSaver.cs	Sat Mar 05 14:58:34 2011 +0000
@@ -12,6 +12,6 @@
 	/// </summary>
 	public interface IWarFoundryFileSaver
 	{
-		void Save(string path, params WarFoundryLoadedObject[] objects);
+		bool Save(string path, params WarFoundryLoadedObject[] objects);
 	}
 }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/api/Savers/Xml/WarFoundryXmlFileSaver.cs	Sat Mar 05 14:58:34 2011 +0000
@@ -0,0 +1,18 @@
+using System;
+using IBBoard.WarFoundry.API.Savers;
+using IBBoard.WarFoundry.API.Objects;
+
+namespace IBBoard.WarFoundry.API.Savers.Xml
+{
+	public class WarFoundryXmlFileSaver : IWarFoundryFileSaver
+	{
+		public WarFoundryXmlFileSaver()
+		{
+		}
+
+		public bool Save (string path, params WarFoundryLoadedObject[] objects)
+		{
+			return true;
+		}
+	}
+}