Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff API/Objects/UnitType.cs @ 419:71fceea2725b
Code tidy-up - remove warnings
* Add missing GetHashcode() implementations
* Remove unused exception variables
* Use unused event
* Remove dead code
* Properly override some methods
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 25 Sep 2011 20:52:27 +0100 |
parents | 1a70ca80ef41 |
children | afc6410e4efc |
line wrap: on
line diff
--- a/API/Objects/UnitType.cs Sat Sep 24 11:59:39 2011 +0100 +++ b/API/Objects/UnitType.cs Sun Sep 25 20:52:27 2011 +0100 @@ -69,6 +69,11 @@ } } + public override int GetHashCode() + { + return Race.GetHashCode() + ID.GetHashCode() + Name.GetHashCode(); + } + public GameSystem GameSystem { get { return Race.GameSystem; }