Exemple #1
0
 public Object deepClone()
 {
     var clone = new GeneticData(tag);
     foreach (KeyValuePair<String, IDeepClonable> entry in data)
     {
         clone.set((String) entry.Key.Clone(), (IDeepClonable) entry.Value.deepClone());
     }
     return clone;
 }
Exemple #2
0
 /// <summary>
 /// Affects data to the genetic data of the extension.
 /// </summary>
 /// <param name="data"></param>
 public Extension(GeneticData data)
 {
     geneticData = data;
 }
Exemple #3
0
 /// <summary>
 /// Instanciate a named extension.
 /// </summary>
 /// <param name="tag">name of the extension or 'tag'</param>
 public Extension(string tag)
 {
     geneticData = new GeneticData(tag);
 }
Exemple #4
0
 public BodyPart(GeneticData data)
     : base(data)
 {
 }
Exemple #5
0
 public Member(GeneticData data)
     : base(data)
 {
 }