Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison api/Objects/UnitMemberType.cs @ 254:cdda78975be1
Fixes #268: Restructure stats for re-use
* Present new stats through Unit
* Add property to get array of type IDs
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 02 May 2010 15:45:31 +0000 |
parents | a54da5a8b5bb |
children |
comparison
equal
deleted
inserted
replaced
253:79943fcf4de2 | 254:cdda78975be1 |
---|---|
16 private Stats stats; | 16 private Stats stats; |
17 | 17 |
18 public UnitMemberType(string typeID, string typeName, Stats typeStats) : base(typeID, typeName) | 18 public UnitMemberType(string typeID, string typeName, Stats typeStats) : base(typeID, typeName) |
19 { | 19 { |
20 stats = typeStats; | 20 stats = typeStats; |
21 } | |
22 | |
23 public string StatsID | |
24 { | |
25 get | |
26 { | |
27 return stats.StatsID; | |
28 } | |
21 } | 29 } |
22 | 30 |
23 /// <value> | 31 /// <value> |
24 /// The set of <see cref="Stat"/>s for the unit member type in a format that is valid for the game system. | 32 /// The set of <see cref="Stat"/>s for the unit member type in a format that is valid for the game system. |
25 /// </value> | 33 /// </value> |