Pull Visible crap out of Harvester

This commit is contained in:
Paul Chote
2011-04-18 09:34:58 +12:00
parent 63e40aec68
commit eff37461d8
4 changed files with 23 additions and 15 deletions

View File

@@ -30,14 +30,10 @@ namespace OpenRA.Mods.RA
}
public class Harvester : IIssueOrder, IResolveOrder, IPips,
IRenderModifier, IExplodeModifier, IOrderVoice,
ISpeedModifier, ISync
IExplodeModifier, IOrderVoice, ISpeedModifier, ISync
{
Dictionary<ResourceTypeInfo, int> contents = new Dictionary<ResourceTypeInfo, int>();
[Sync]
public bool Visible = true;
[Sync]
public Actor LinkedProc = null;
@@ -210,11 +206,6 @@ namespace OpenRA.Mods.RA
for (int i = 0; i < numPips; i++)
yield return GetPipAt(i);
}
public IEnumerable<Renderable> ModifyRender(Actor self, IEnumerable<Renderable> r)
{
return Visible ? r : new Renderable[] { };
}
public bool ShouldExplode(Actor self) { return !IsEmpty; }