예제 #1
0
 public void RemoveCable(Cable tile)
 {
     if (Cables.Contains(tile))
     {
         Cables.Remove(tile);
         Reform();
     }
 }
예제 #2
0
        public Network(Cable tube)
        {
            Networks.Add(this);

            Cables = new List <Cable> {
                tube
            };
        }
예제 #3
0
 public void AddCable(Cable tile)
 {
     if (!Cables.Contains(tile))
     {
         Networks.Remove(tile.Network);
         tile.Network = this;
         Cables.Add(tile);
     }
 }