Beispiel #1
0
 /// <summary>
 /// Creates a File based on the name and the Executable.IInterface generated file data.
 /// </summary>
 /// <returns>The File that was created.</returns>
 /// <param name="name">The name to assign to the File.</param>
 /// <param name="exeInterface">The Executable.IInterface whose file data is to be generated.</param>
 public File CreateFile(string name, Executable.IInterface exeInterface) =>
 CreateFile(name, Executable.Handler.GetStandardFileDataBy(exeInterface));
Beispiel #2
0
 public static Hacknet.Folder AddFile(this Hacknet.Folder self, string name, Executable.IInterface data) =>
 self.AddFile(name, Executable.Handler.GetStandardFileDataBy(data));