示例#1
0
 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
     }
 }
示例#2
0
 public DNASequence(DNASequence aPatternDNA)
 {
     LoadSkillsFromDNA(aPatternDNA);
 }