fixed bug where cloakable units were not targetable when uncloaked. removed ITargetable interface in favor of using the Targetable trait. fixed warnings in child classes of Targetable.

This commit is contained in:
pdovy
2010-10-10 23:09:17 -05:00
committed by Chris Forbes
parent a904047a16
commit e883e63c87
5 changed files with 18 additions and 20 deletions

View File

@@ -20,15 +20,15 @@ namespace OpenRA.Traits
public virtual object Create( ActorInitializer init ) { return new Targetable(this); }
}
public class Targetable : ITargetable
public class Targetable
{
TargetableInfo Info;
protected TargetableInfo Info;
public Targetable(TargetableInfo info)
{
Info = info;
}
public string[] TargetTypes
public virtual string[] TargetTypes
{
get { return Info.TargetTypes;}
}