finishBuildingInstance method
Marks instance and built for cyclic check
Implementation
void finishBuildingInstance(String typeId, int? index) {
if (!checkForCyclicDependencies) {
return;
}
final currentlyBuildingInstances = buildingInstances[typeId];
if (currentlyBuildingInstances == null) {
return;
} else {
currentlyBuildingInstances.remove(index ?? 0);
}
}