Remove unused IExplodeModifier from Refinery.

This commit is contained in:
Paul Chote
2018-11-17 07:56:43 +00:00
committed by Oliver Brakmann
parent 10e51db236
commit 5f2cc5981d

View File

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Common.Traits
public virtual object Create(ActorInitializer init) { return new Refinery(init.Self, this); }
}
public class Refinery : ITick, IAcceptResources, INotifySold, INotifyCapture, INotifyOwnerChanged, IExplodeModifier, ISync, INotifyActorDisposing
public class Refinery : ITick, IAcceptResources, INotifySold, INotifyCapture, INotifyOwnerChanged, ISync, INotifyActorDisposing
{
readonly Actor self;
readonly RefineryInfo info;
@@ -61,7 +61,6 @@ namespace OpenRA.Mods.Common.Traits
int currentDisplayTick = 0;
int currentDisplayValue = 0;
[Sync] public int Ore = 0;
[Sync] Actor dockedHarv = null;
[Sync] bool preventDock = false;
@@ -180,7 +179,5 @@ namespace OpenRA.Mods.Common.Traits
foreach (var harv in GetLinkedHarvesters())
harv.Trait.UnlinkProc(harv.Actor, self);
}
public bool ShouldExplode(Actor self) { return Ore > 0; }
}
}