Пример #1
0
 public static Hacknet.Folder AddFolder(this Hacknet.Folder self, string name, List <Hacknet.Folder> folders = null, List <Hacknet.FileEntry> files = null)
 {
     self.Add(new Hacknet.Folder(name));
     if (folders != null)
     {
         self.folders[self.folders.Count].folders = folders;
     }
     if (files != null)
     {
         self.folders[self.folders.Count].files = files;
     }
     return(self);
 }
Пример #2
0
 public static Hacknet.Folder AddFile(this Hacknet.Folder self, string name, string data = null)
 {
     self.Add(new Hacknet.FileEntry(name, data));
     return(self);
 }