private void GenerateSystems() { DomainControler = new ComputerSystem(this); DomainControler.SetDomainControler(); for (int i = 0; i < Singiltons.rand.Next(10) + 20; i++) { this.AllSystems.Add(new ComputerSystem(this)); } }
public static void GenerateNetworks() { LocalHost = new ComputerSystem(LocalNetwork); LocalNetwork.AllSystems.Add(LocalHost); LocalSession = new Session(LocalHost.GetUser("Admin")); for (int i = 0; i < 5; i++) { Networks.Add(new Network()); } }
public static void GenerateBasicFilesystem(ComputerSystem sys, Session rootUser) { sys.FSCreateDirectory("Users", rootUser); for (int i = 0; i < Singiltons.rand.Next(100) + 40; i++) { sys.FSCreateFile("", GetRandomDLLName(), Singiltons.rand.Next(2000000), rootUser); } for (int i = 0; i < Singiltons.rand.Next(5) + 5; i++) { string exeName = GetRandom(EXENames); sys.FSCreateDirectory(exeName, rootUser); sys.FSCreateFile(exeName + "\\", exeName + ".exe", Singiltons.rand.Next(6000000), rootUser); for (int x = 0; x < Singiltons.rand.Next(4); x++) { sys.FSCreateFile(exeName + "\\", GetRandomDATName(), Singiltons.rand.Next(10000000), rootUser); } } sys.FSSweepPremissions("", true, sys.GetGroup("Admins"), new FilePremission(true, false), rootUser); sys.FSCreateDirectory("SystemStore", rootUser); }
public User(ComputerSystem parent) { this.Parent = parent; }
public User(ComputerSystem parent, string name) { this.Parent = parent; this.Name = name; }