git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1128 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -89,5 +89,16 @@ namespace OpenRa.TechTreeTest
|
|||||||
|
|
||||||
return p.Count == prerequisites.Length;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user