public void ProcessHFtoEntityLinks() { for (int i = 0; i < _hFtoEntityLinks.Count; i++) { Property link = _hFtoEntityLinks[i]; HistoricalFigure hf = _hFtoEntityLinkHFs[i]; EntityLink relatedEntity = new EntityLink(link.SubProperties, this); if (relatedEntity.Entity != null) { if (relatedEntity.Type != EntityLinkType.Enemy || relatedEntity.Type == EntityLinkType.Enemy && relatedEntity.Entity.IsCiv) { hf.RelatedEntities.Add(relatedEntity); } } } _hFtoEntityLinkHFs.Clear(); _hFtoEntityLinks.Clear(); }
public void ProcessHFtoEntityLinks() { for (int i = 0; i < HFtoEntityLinks.Count; i++) { Property link = HFtoEntityLinks[i]; HistoricalFigure hf = HFtoEntityLinkHFs[i]; EntityLink relatedEntity = new EntityLink(link.SubProperties, this); if (relatedEntity.Entity == null) { continue; } else if (relatedEntity.Type != EntityLinkType.Enemy || (relatedEntity.Type == EntityLinkType.Enemy && relatedEntity.Entity.IsCiv)) { hf.RelatedEntities.Add(relatedEntity); } } HFtoEntityLinkHFs.Clear(); HFtoEntityLinks.Clear(); }
public void ProcessHFtoEntityLinks() { for (int i = 0; i < HFtoEntityLinks.Count; i++) { Property link = HFtoEntityLinks[i]; HistoricalFigure hf = HFtoEntityLinkHFs[i]; EntityLink relatedEntity = new EntityLink(link.SubProperties, this); if (relatedEntity.Entity == null) continue; else if (relatedEntity.Type != EntityLinkType.Enemy || (relatedEntity.Type == EntityLinkType.Enemy && relatedEntity.Entity.IsCiv)) hf.RelatedEntities.Add(relatedEntity); } HFtoEntityLinkHFs.Clear(); HFtoEntityLinks.Clear(); }