git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1128 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2007-07-07 05:29:36 +00:00
parent 29fb75c486
commit 4d5b454d5b

View File

@@ -89,5 +89,16 @@ namespace OpenRa.TechTreeTest
return p.Count == prerequisites.Length;
}
bool buildable = false;
public bool Buildable { get { return buildable; } }
public void CheckPrerequisites(IEnumerable<string> buildings)
{
if (buildable && ShouldMakeUnbuildable(buildings))
buildable = false;
else if (!buildable && ShouldMakeBuildable(buildings))
buildable = true;
}
}
}