Beispiel #1
0
 public override Node CreateNode(string label) {
     if (Pos.IsPos(label)) {
         var cell = new TunnelCell(label);
         TunnelCells.Add(cell);
         return cell;
     } else if ("Diggers".Equals(label)) {
         return Diggers;
     } else {
         return base.CreateNode(label);
     }
     // TODO Diggers
 }
Beispiel #2
0
 public override Node CreateNode(string label)
 {
     if (Pos.IsPos(label))
     {
         var cell = new TunnelCell(label);
         TunnelCells.Add(cell);
         return(cell);
     }
     else if ("Diggers".Equals(label))
     {
         return(Diggers);
     }
     else
     {
         return(base.CreateNode(label));
     }
     // TODO Diggers
 }