diff api/Objects/GameSystem.cs @ 51:b271a2252758

Re #50 - Fully load XML files * Load remaining GameSystem attributes * Add "AllowAllies" property to GameSystem class * Add "is loading" methods to "staged loading" interface
author IBBoard <dev@ibboard.co.uk>
date Sat, 28 Mar 2009 21:00:35 +0000
parents d0812d7de39d
children 3ea0ab04352b
line wrap: on
line diff
--- a/api/Objects/GameSystem.cs	Sat Mar 28 20:51:06 2009 +0000
+++ b/api/Objects/GameSystem.cs	Sat Mar 28 21:00:35 2009 +0000
@@ -17,7 +17,8 @@
 	/// </summary>
 	public class GameSystem : WarFoundryStagedLoadingObject
 	{
-		private bool warnOnError;
+		private bool warnOnError;
+		private bool allowAllies;
 		private Dictionary<string, Category> categories = new Dictionary<string,Category>();
 		private Dictionary<string, SystemStats> stats = new Dictionary<string,SystemStats>();
 		private string defaultStats;
@@ -26,14 +27,12 @@
 		{
 			stats = new Dictionary<string,SystemStats>();
 		}
-				
-		/*public void CompleteLoading(Category[] cats, Dictionary<string, SystemStats> sysStats, string defaultStatsID)
+		
+		public bool AllowAllies
 		{
-			categories = cats;
-			stats = new SystemStatsSet(sysStats); 
-			defaultStats = defaultStatsID;
-			base.CompleteLoading();
-		}*/
+			get { return allowAllies; }
+			set { allowAllies = value; }
+		}
 		
 		public void AddCategory(Category cat)
 		{