示例#1
0
        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();
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }