diff api/Objects/UnitType.cs @ 68:10d14a7051d5

Re #50 - Complete core loading of WarFoundry XML files * Start to restructure loading so that we can use pre-existing objects * Break unit loading in to methods Also: * Pad stats list with nulls because setting capacity doesn't let you set arbitrary indexes * Add GameSystem property to UnitType
author IBBoard <dev@ibboard.co.uk>
date Sat, 25 Apr 2009 19:18:11 +0000
parents e6200220ece3
children 91cf8efbea0b
line wrap: on
line diff
--- a/api/Objects/UnitType.cs	Sat Apr 25 14:59:23 2009 +0000
+++ b/api/Objects/UnitType.cs	Sat Apr 25 19:18:11 2009 +0000
@@ -56,6 +56,11 @@
 			}
 		}
 
+		public GameSystem GameSystem
+		{
+			get { return Race.GameSystem; }
+		}
+		
 		/// <value>
 		/// Gets the <see cref=" Race"/> that this unit belongs to.
 		/// </value>