diff api/Objects/UnitType.cs @ 69:91cf8efbea0b

Re #50 - Complete core loading of WarFoundry XML files * Make "Notes" a String value, as per schema * Load contained units
author IBBoard <dev@ibboard.co.uk>
date Sat, 25 Apr 2009 19:26:12 +0000
parents 10d14a7051d5
children 032b174fc17a
line wrap: on
line diff
--- a/api/Objects/UnitType.cs	Sat Apr 25 19:18:11 2009 +0000
+++ b/api/Objects/UnitType.cs	Sat Apr 25 19:26:12 2009 +0000
@@ -28,7 +28,7 @@
 		private List<string> equipmentKeyOrder = new List<string>();
 		private Dictionary<string, Ability> requiredAbilities = new Dictionary<string, Ability>();
 		private Dictionary<string, Ability> optionalAbilities = new Dictionary<string, Ability>();
-		private List<String> notes = new List<string>();
+		private String notes = "";
 		private List<UnitType> containedTypes = new List<UnitType>();
 		private Dictionary<string, string> extraData = new Dictionary<string, string>();
 
@@ -377,16 +377,12 @@
 			return failures;
 		}
 		
-		public string[] Notes
+		public string Notes
 		{
-			get { return notes.ToArray(); }
+			get { return notes; }
+			set { notes = value; }
 		}
-		
-		public void AddNote(string note)
-		{
-			notes.Add(note);
-		}
-		
+				
 		public bool CanContainUnit(Unit unit)
 		{
 			return CanContainUnitType(unit.UnitType);