public void UpdateConnectedEntities()
    {
        List <EntityLink> entityLinks = base.GetEntityLinks(true);

        for (int i = 0; i < entityLinks.Count; i++)
        {
            EntityLink item = entityLinks[i];
            if (item.IsFemale())
            {
                for (int j = 0; j < item.connections.Count; j++)
                {
                    StabilityEntity stabilityEntity = item.connections[j].owner as StabilityEntity;
                    if (!(stabilityEntity == null) && !stabilityEntity.isClient && !stabilityEntity.IsDestroyed)
                    {
                        stabilityEntity.UpdateStability();
                    }
                }
            }
        }
    }
示例#2
0
    public void UpdateConnectedEntities()
    {
        List <EntityLink> entityLinks = this.GetEntityLinks(true);

        for (int index1 = 0; index1 < entityLinks.Count; ++index1)
        {
            EntityLink entityLink = entityLinks[index1];
            if (entityLink.IsFemale())
            {
                for (int index2 = 0; index2 < entityLink.connections.Count; ++index2)
                {
                    StabilityEntity owner = entityLink.connections[index2].owner as StabilityEntity;
                    if (!Object.op_Equality((Object)owner, (Object)null) && !owner.isClient && !owner.IsDestroyed)
                    {
                        owner.UpdateStability();
                    }
                }
            }
        }
    }