示例#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
文件: Extension.cs 项目: Thomsch/EVA
 /// <summary>
 /// Affects data to the genetic data of the extension.
 /// </summary>
 /// <param name="data"></param>
 public Extension(GeneticData data)
 {
     geneticData = data;
 }
示例#3
0
文件: Extension.cs 项目: Thomsch/EVA
 /// <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
文件: BodyPart.cs 项目: Thomsch/EVA
 public BodyPart(GeneticData data)
     : base(data)
 {
 }
示例#5
0
文件: Member.cs 项目: Thomsch/EVA
 public Member(GeneticData data)
     : base(data)
 {
 }