Пример #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;
 }
Пример #2
0
 /// <summary>
 /// Affects data to the genetic data of the extension.
 /// </summary>
 /// <param name="data"></param>
 public Extension(GeneticData data)
 {
     geneticData = data;
 }
Пример #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);
 }
Пример #4
0
 public BodyPart(GeneticData data)
     : base(data)
 {
 }
Пример #5
0
 public Member(GeneticData data)
     : base(data)
 {
 }