Remove some long-dead code.
This commit is contained in:
@@ -151,24 +151,14 @@ namespace OpenRA.Mods.RA
|
|||||||
x.Traits.Get<BuildableInfo>().Queue.Contains(category));
|
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)
|
public void PrerequisitesAvailable(string key)
|
||||||
{
|
{
|
||||||
var ps = produceable[self.World.Map.Rules.Actors[key]];
|
produceable[self.World.Map.Rules.Actors[key]].Buildable = true;
|
||||||
if (!ps.Sticky)
|
|
||||||
ps.Buildable = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PrerequisitesUnavailable(string key)
|
public void PrerequisitesUnavailable(string key)
|
||||||
{
|
{
|
||||||
var ps = produceable[self.World.Map.Rules.Actors[key]];
|
produceable[self.World.Map.Rules.Actors[key]].Buildable = false;
|
||||||
if (!ps.Sticky)
|
|
||||||
ps.Buildable = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PrerequisitesItemHidden(string key)
|
public void PrerequisitesItemHidden(string key)
|
||||||
@@ -366,7 +356,6 @@ namespace OpenRA.Mods.RA
|
|||||||
{
|
{
|
||||||
public bool Visible = false;
|
public bool Visible = false;
|
||||||
public bool Buildable = false;
|
public bool Buildable = false;
|
||||||
public bool Sticky = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ProductionItem
|
public class ProductionItem
|
||||||
|
|||||||
Reference in New Issue
Block a user