Пример #1
0
 void IWorldEffectService.AddFidsModifierDescriptors(SimulationObject district, WorldPosition position, bool districtIsProxy)
 {
     foreach (List <WorldEffect> list in this.worldEffects.Values)
     {
         for (int i = 0; i < list.Count; i++)
         {
             WorldEffect_FIDSModifier worldEffect_FIDSModifier = list[i] as WorldEffect_FIDSModifier;
             if (worldEffect_FIDSModifier != null && worldEffect_FIDSModifier.HasAnEffectOnPosition(position))
             {
                 worldEffect_FIDSModifier.AddFidsModifierDescriptors(district, position, districtIsProxy);
             }
         }
     }
 }
Пример #2
0
    ICollection <SimulationDescriptor> IWorldEffectService.GetFidsModifierDescriptors(WorldPosition position)
    {
        List <SimulationDescriptor> list = new List <SimulationDescriptor>();

        foreach (List <WorldEffect> list2 in this.worldEffects.Values)
        {
            for (int i = 0; i < list2.Count; i++)
            {
                WorldEffect_FIDSModifier worldEffect_FIDSModifier = list2[i] as WorldEffect_FIDSModifier;
                if (worldEffect_FIDSModifier != null && worldEffect_FIDSModifier.HasAnEffectOnPosition(position))
                {
                    list.AddRange(worldEffect_FIDSModifier.GetFidsModifierDescriptorsHavingAnEffectOnPosition(position));
                }
            }
        }
        return(list);
    }