public void Apply() { foreach (var cellWithFeatures in FeaturePositionsForCell.Keys) { ApplyFeaturesToCell(cellWithFeatures, FeaturePositionsForCell[cellWithFeatures]); } FeaturePositionsForCell.Clear(); }
public void Clear(bool performPossessionUnassignment) { if (performPossessionUnassignment) { foreach (var possession in OwnerOfPossession.Keys) { ChangeOwnerOfPossession(possession, null); } } OwnerOfPossession.Clear(); PossessionsOfOwner.Clear(); }
public void ResolveBuildingConstructionRequests() { foreach (var wonderTemplate in ProductionRequestsByTemplate.Keys) { if (wonderTemplate.Type == BuildingType.NationalWonder) { foreach (var requestsFromCiv in SeparateRequestsByCiv(ProductionRequestsByTemplate[wonderTemplate])) { ResolveRequests(requestsFromCiv); } } else if (wonderTemplate.Type == BuildingType.WorldWonder) { ResolveRequests(ProductionRequestsByTemplate[wonderTemplate]); } } ProductionRequestsByTemplate.Clear(); }
public void Clear() { BestowedFreeBuildingsOfCity.Clear(); }
/// <summary> /// Update the boids system /// </summary> private void UpdateBoidsSingleThread() { StoreHashedBoidsSingleThread(); DoSteeringSingleThread(); boidsDict.Clear(); }
public void Clear() { PoliciesUnlockedByCiv.Clear(); TreesUnlockedByCiv.Clear(); }
public void Clear() { PendingFreeBuildingsOfCiv.Clear(); }