Remove some long-dead code.

This commit is contained in:
Paul Chote
2014-06-21 19:25:35 +12:00
parent 66d9629520
commit d9e0559c7a

View File

@@ -151,24 +151,14 @@ namespace OpenRA.Mods.RA
x.Traits.Get<BuildableInfo>().Queue.Contains(category));
}
public void OverrideProduction(ActorInfo type, bool buildable)
{
produceable[type].Buildable = buildable;
produceable[type].Sticky = true;
}
public void PrerequisitesAvailable(string key)
{
var ps = produceable[self.World.Map.Rules.Actors[key]];
if (!ps.Sticky)
ps.Buildable = true;
produceable[self.World.Map.Rules.Actors[key]].Buildable = true;
}
public void PrerequisitesUnavailable(string key)
{
var ps = produceable[self.World.Map.Rules.Actors[key]];
if (!ps.Sticky)
ps.Buildable = false;
produceable[self.World.Map.Rules.Actors[key]].Buildable = false;
}
public void PrerequisitesItemHidden(string key)
@@ -366,7 +356,6 @@ namespace OpenRA.Mods.RA
{
public bool Visible = false;
public bool Buildable = false;
public bool Sticky = false;
}
public class ProductionItem