private void updateParents(List<Creature> creatures)
{
Creature mother, father;
foreach (Creature c in creatures)
{
if (c.motherGuid != Guid.Empty || c.fatherGuid != Guid.Empty)
{
mother = null;
father = null;
foreach (Creature p in creatureCollection.creatures)
{
if (c.motherGuid == p.guid)
{
mother = p;
if (father != null)
break;
}
else if (c.fatherGuid == p.guid)
{
father = p;
if (mother != null)
break;
}
}
c.Mother = mother;
c.Father = father;
}
}
}