Refactored Health usage to IHealth.
This commit is contained in:
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public class Sellable : ConditionalTrait<SellableInfo>, IResolveOrder, IProvideTooltipInfo
|
||||
{
|
||||
readonly Actor self;
|
||||
readonly Lazy<Health> health;
|
||||
readonly Lazy<IHealth> health;
|
||||
readonly SellableInfo info;
|
||||
|
||||
public Sellable(Actor self, SellableInfo info)
|
||||
@@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
this.self = self;
|
||||
this.info = info;
|
||||
health = Exts.Lazy(() => self.TraitOrDefault<Health>());
|
||||
health = Exts.Lazy(() => self.TraitOrDefault<IHealth>());
|
||||
}
|
||||
|
||||
public void ResolveOrder(Actor self, Order order)
|
||||
|
||||
Reference in New Issue
Block a user