示例#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
 }
示例#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
 }