Replace .WithInterface<T>().Any() => .HasTraitInfo<T>()

This commit is contained in:
atlimit8
2015-09-19 12:38:16 -05:00
parent b38b6eadd0
commit 6e39a5e264
4 changed files with 6 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ namespace OpenRA.Mods.Common.Traits
this.info = info;
manager = self.Trait<UpgradeManager>();
checkTerrainType = info.AllowedTerrainTypes.Count > 0;
canTurn = self.Info.Traits.WithInterface<IFacingInfo>().Any();
canTurn = self.Info.HasTraitInfo<IFacingInfo>();
body = Exts.Lazy(self.TraitOrDefault<ISpriteBody>);
}
@@ -168,4 +168,4 @@ namespace OpenRA.Mods.Common.Traits
manager.RevokeUpgrade(self, up, this);
}
}
}
}