Example #1
0
 public Tree(PackageLeaf root)
 {
     userroot = root;
     userroot.MakeUser();
     path   = new List <string>();
     status = new List <string>();
 }
Example #2
0
 public PackageLeaf(string nam, int byt)
 {
     pater     = null;
     byteCount = byt;
     name      = nam;
     files     = new List <Edge>();
     visited   = false;
 }
Example #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);
     }
     //
 }
Example #4
0
 public Edge(PackageLeaf to, float speed_slow, ErrorType err)
 {
     this.to         = to;
     this.speed_slow = speed_slow;
     this.err        = err;
 }
Example #5
0
 public Edge(PackageLeaf to, float speed_slow)
 {
     this.to         = to;
     this.speed_slow = speed_slow;
     err             = ErrorType.none;
 }
Example #6
0
 public Tree()
 {
     userroot = new PackageLeaf("user", 0);
     path     = new List <string>();
     status   = new List <string>();
 }