started porting traits to use new trait args.

This commit is contained in:
Chris Forbes
2010-01-10 18:55:10 +13:00
parent 99a61ca8d9
commit e7f9023aca
9 changed files with 501 additions and 87 deletions

View File

@@ -2,12 +2,8 @@
namespace OpenRa.Game.Traits
{
class UnitInfo : ITraitInfo
class UnitInfo : OwnedActorInfo, ITraitInfo
{
public readonly int HP = 0;
public readonly ArmorType Armor = ArmorType.none;
public readonly bool Crewed = false; // replace with trait?
public object Create(Actor self) { return new Unit(self); }
}