Remove ISpriteBody

This commit is contained in:
abcdefg30
2015-12-20 18:44:55 +01:00
parent 7c0b30888d
commit 72ac5240b8
4 changed files with 5 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ namespace OpenRA.Mods.Common.Traits
readonly UpgradeManager manager;
readonly bool checkTerrainType;
readonly bool canTurn;
readonly Lazy<ISpriteBody> body;
readonly Lazy<WithSpriteBody> body;
DeployState deployState;
@@ -75,7 +75,7 @@ namespace OpenRA.Mods.Common.Traits
manager = self.Trait<UpgradeManager>();
checkTerrainType = info.AllowedTerrainTypes.Count > 0;
canTurn = self.Info.HasTraitInfo<IFacingInfo>();
body = Exts.Lazy(self.TraitOrDefault<ISpriteBody>);
body = Exts.Lazy(self.TraitOrDefault<WithSpriteBody>);
if (init.Contains<DeployStateInit>())
deployState = init.Get<DeployStateInit, DeployState>();
}