Пример #1
0
 public void Copy(Body body)
 {
     government = body.government;
     branch     = body.branch;
     id         = body.id;
     name       = body.name;
     bodyType   = body.bodyType;
 }
Пример #2
0
 public void Copy(Power other)
 {
     branch = other.branch;
     id     = other.id;
     name   = other.name;
     stages = new List <Stage>(
         other.stages.Select((Stage x) => {
         Stage y  = x.Clone() as Stage;
         y.parent = this;
         return(y);
     }
                             )
         );
 }