public void Apply()
        {
            foreach (var cellWithFeatures in FeaturePositionsForCell.Keys)
            {
                ApplyFeaturesToCell(cellWithFeatures, FeaturePositionsForCell[cellWithFeatures]);
            }

            FeaturePositionsForCell.Clear();
        }
示例#2
0
        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();
 }
示例#5
0
 /// <summary>
 /// Update the boids system
 /// </summary>
 private void UpdateBoidsSingleThread()
 {
     StoreHashedBoidsSingleThread();
     DoSteeringSingleThread();
     boidsDict.Clear();
 }
示例#6
0
 public void Clear()
 {
     PoliciesUnlockedByCiv.Clear();
     TreesUnlockedByCiv.Clear();
 }
 public void Clear()
 {
     PendingFreeBuildingsOfCiv.Clear();
 }