Mercurial > repos > snowblizz-super-API-ideas
changeset 162:624422e91a1c
Re #192: Improve "clean coding" practice
* Make Equipment util class public
* Remove use of obsolete method
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 04 Oct 2009 15:52:15 +0000 |
parents | 81abc04b3dbe |
children | 395c8042dc03 |
files | api/Objects/Unit.cs api/Util/UnitEquipmentUtil.cs |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/api/Objects/Unit.cs Sun Oct 04 12:00:16 2009 +0000 +++ b/api/Objects/Unit.cs Sun Oct 04 15:52:15 2009 +0000 @@ -434,7 +434,7 @@ } else { - canEquip = GetBlockingEquipmentItems(item).Count == 0; + canEquip = UnitEquipmentUtil.GetBlockingEquipmentItems(this, item).Count == 0; } return canEquip;
--- a/api/Util/UnitEquipmentUtil.cs Sun Oct 04 12:00:16 2009 +0000 +++ b/api/Util/UnitEquipmentUtil.cs Sun Oct 04 15:52:15 2009 +0000 @@ -9,7 +9,7 @@ namespace IBBoard.WarFoundry.API.Util { - class UnitEquipmentUtil + public class UnitEquipmentUtil { /// <summary> /// Gets an array of allowed <see cref="UnitEquipmentItem"/>s based on the current selections of the unit, taking in to account Mutex groups and other limits.