Mercurial > repos > snowblizz-super-API-ideas
diff api/Objects/Unit.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 | 65553d2c8612 |
children | 6fe0cb1bf74f |
line wrap: on
line diff
--- a/api/Objects/Unit.cs Mon Apr 26 19:49:51 2010 +0000 +++ b/api/Objects/Unit.cs Sun May 02 15:45:31 2010 +0000 @@ -472,15 +472,35 @@ } } + [Obsolete("Use UnitStatsArrays instead")] public Stat[] UnitStatsArray { get { return UnitType.UnitStatsArray; } } + + public Stat[][] UnitStatsArrays + { + get { return UnitType.UnitStatsArrays; } + } + [Obsolete("Use UnitStatsArraysWithName instead")] public Stat[] UnitStatsArrayWithName { get { return UnitType.UnitStatsArrayWithName; } } + + public Stat[][] UnitStatsArraysWithName + { + get { return UnitType.UnitStatsArraysWithName; } + } + + public string[] UnitStatsArrayIDs + { + get + { + return UnitType.UnitStatsArrayIDs; + } + } public string GetStatValue(string statName) {