diff API/Objects/GameSystem.cs @ 397:5733e3b957cc Ticket341-DefaultArmySize

Re #341: Default army size of 0 * Set sensible defaults in GameSystem Also: * Setup .hgignore
author IBBoard <dev@ibboard.co.uk>
date Sun, 21 Aug 2011 20:42:23 +0100
parents 50d0d3b39a0b
children 71fceea2725b
line wrap: on
line diff
--- a/API/Objects/GameSystem.cs	Sun Aug 14 00:58:02 2011 +0000
+++ b/API/Objects/GameSystem.cs	Sun Aug 21 20:42:23 2011 +0100
@@ -13,18 +13,17 @@
 	/// </summary>
 	public class GameSystem : WarFoundryStagedLoadingObject
 	{
-		private static int SYSTEM_DEFAULT_ARMY_SIZE = 1000;
-		private bool warnOnError;
-		private bool allowAllies;
+		private static readonly int SYSTEM_DEFAULT_ARMY_SIZE = 1000;
+		private bool warnOnError = true;
+		private bool allowAllies = false;
 		private Dictionary<string, Category> categories = new Dictionary<string, Category>();
 		private Dictionary<string, SystemStats> stats = new Dictionary<string, SystemStats>();
-		private string defaultStats;
-		private int defaultArmySize;
+		private string defaultStats = "";
+		private int defaultArmySize = SYSTEM_DEFAULT_ARMY_SIZE;
 
 		public GameSystem(string systemID, string systemName, IWarFoundryFactory creatingFactory) : base(systemID, systemName, creatingFactory)
 		{
-			stats = new Dictionary<string, SystemStats>();
-			defaultStats = "";
+			//Do nothing special
 		}
 
 		public int SystemArmyDefaultSize