Exemplo n.º 1
0
 public Tree(PackageLeaf root)
 {
     userroot = root;
     userroot.MakeUser();
     path   = new List <string>();
     status = new List <string>();
 }
Exemplo n.º 2
0
 public PackageLeaf(string nam, int byt)
 {
     pater     = null;
     byteCount = byt;
     name      = nam;
     files     = new List <Edge>();
     visited   = false;
 }
Exemplo n.º 3
0
 static void RecursiveGo(PackageLeaf pack)
 {
     if (pack.visited)
     {
         return;
     }
     pack.Info();
     pack.visited = true;
     WentPacks++;
     Loader.ChangeLoader(WentPacks, Count);
     for (int i = 0; i < pack.files.Count; i++)
     {
         RecursiveGo(pack.files[i].to);
     }
     //
 }
Exemplo n.º 4
0
 public Edge(PackageLeaf to, float speed_slow, ErrorType err)
 {
     this.to         = to;
     this.speed_slow = speed_slow;
     this.err        = err;
 }
Exemplo n.º 5
0
 public Edge(PackageLeaf to, float speed_slow)
 {
     this.to         = to;
     this.speed_slow = speed_slow;
     err             = ErrorType.none;
 }
Exemplo n.º 6
0
 public Tree()
 {
     userroot = new PackageLeaf("user", 0);
     path     = new List <string>();
     status   = new List <string>();
 }