diff api/Objects/UnitType.cs @ 170:3045a168714a WarFoundry_v0.1beta4_Winforms WarFoundry_v0.1beta5_Winforms

* Line ending clean-up no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sun, 11 Oct 2009 19:57:34 +0000
parents 9ba56a8e5096
children 22429737cd77
line wrap: on
line diff
--- a/api/Objects/UnitType.cs	Tue Oct 06 18:29:07 2009 +0000
+++ b/api/Objects/UnitType.cs	Sun Oct 11 19:57:34 2009 +0000
@@ -29,8 +29,8 @@
 		private Dictionary<string, Ability> requiredAbilities = new Dictionary<string, Ability>();
 		private Dictionary<string, Ability> optionalAbilities = new Dictionary<string, Ability>();
 		private String notes = "";
-		private List<UnitType> containedTypes = new List<UnitType>();
-		private Dictionary<string, string> extraData = new Dictionary<string, string>();
+		private List<UnitType> containedTypes = new List<UnitType>();
+		private Dictionary<string, string> extraData = new Dictionary<string, string>();
 		private Dictionary<string, int> slotLimits = new Dictionary<string, int>();
 
 
@@ -447,34 +447,34 @@
 			get
 			{
 				return stats.StatsID;
-			}
-		}
-
-		public void AddEquipmentSlot(string slotName, int slotLimit)
-		{
-			slotLimits.Add(slotName, slotLimit);
-		}
-
-		public bool HasEquipmentSlot(string slotName)
-		{
-			return slotLimits.ContainsKey(slotName);
-		}
-
-		/// <summary>
-		/// Gets the maximum number of items allowed in a single slot
-		/// </summary>
-		/// <param name="slotName">The name of the equipment slot to get the limit for the named slot</param>
-		/// <returns>The maximum number of items allowed in a slot, or <code>-1</code> if the slot is the default one or has not been specified</returns>
-		public int GetEquipmentSlotLimit(string slotName)
-		{
-			int slotLimit = -1;
-
-			if (HasEquipmentSlot(slotName))
-			{
-				slotLimit = DictionaryUtils.GetValue(slotLimits, slotName);
-			}
-
-			return slotLimit;
+			}
+		}
+
+		public void AddEquipmentSlot(string slotName, int slotLimit)
+		{
+			slotLimits.Add(slotName, slotLimit);
+		}
+
+		public bool HasEquipmentSlot(string slotName)
+		{
+			return slotLimits.ContainsKey(slotName);
+		}
+
+		/// <summary>
+		/// Gets the maximum number of items allowed in a single slot
+		/// </summary>
+		/// <param name="slotName">The name of the equipment slot to get the limit for the named slot</param>
+		/// <returns>The maximum number of items allowed in a slot, or <code>-1</code> if the slot is the default one or has not been specified</returns>
+		public int GetEquipmentSlotLimit(string slotName)
+		{
+			int slotLimit = -1;
+
+			if (HasEquipmentSlot(slotName))
+			{
+				slotLimit = DictionaryUtils.GetValue(slotLimits, slotName);
+			}
+
+			return slotLimit;
 		}
 	}
 }
\ No newline at end of file