private void LoadSkillsFromDNA(DNASequence aDna) { if (aDna != null) { int x = 0; foreach (Skill sk in aDna.SkillList.Values) { SkillList.Add(sk.Type, new Skill(sk.Type, sk.Value, sk.Priority, x++)); } LfType = (LifeFormTypes)GetAttribute(SkillTypes.LifeFormType); } else { //We must stablish some pattern configs } }
public DNASequence(DNASequence aPatternDNA) { LoadSkillsFromDNA(aPatternDNA); }