public GatewaySystem(string name, OperatingSystems selectedos, MotherboardSystem motherboard, FileSystem files) //,Texture2D icon) { Name = name; SelectedOS = selectedos; Motherboard = motherboard; Files = files; }
public void Load() { if (File.Exists(Application.dataPath + "/saves/" + ProfileController.procon.VersionNumber + "/profiles/" + ProfileName + ".dat")) { BinaryFormatter bf = new BinaryFormatter(); FileStream file = File.Open(Application.dataPath + "/saves/" + ProfileController.procon.VersionNumber + "/profiles/" + ProfileName + ".dat", FileMode.Open); //Debug.Log(Application.persistentDataPath); ComputerData data = (ComputerData) bf.Deserialize(file); file.Close(); NewAccount = data.NewAccount; ProfileName = data.ProfileName; ProfileID = data.ProfileID; WebsiteFiles = data.WebsiteFiles; StoryMis = data.StoryMis; GUIID = data.GUIID; DocumentContent = data.DocumentContent; DocumentName = data.DocumentName; MyFiles = data.MyFiles; FileSize = data.FileSize; fullip = data.fullip; Rep = data.Rep; Sites = data.Sites; FavSites = data.FavSites; SoftwareVersion = data.SoftwareVersion; Hardware = data.Hardware; ip1 = data.ip1; ip2 = data.ip2; ip3 = data.ip3; ip4 = data.ip4; AcaDegree = data.AcaDegree; StudentDegree = data.StudentDegree; AcaName = data.AcaName; Fines = data.Fines; Clicks = data.Clicks; score = data.score; Upgrades = data.Upgrades; Cost = data.Cost; SpaceName = data.SpaceName; SharesBoughtOffName = data.SharesBoughtOffName; SharesBoughtPrice = data.SharesBoughtPrice; SharesBrought = data.SharesBrought; AccountNumber = data.AccountNumber; Bank = data.Bank; Balance = data.Balance; SelectedBank = data.SelectedBank; StoredLogins = data.StoredLogins; WebsiteSecurity = data.WebsiteSecurity; ProgramInfo = data.ProgramInfo; MyBankDetails = data.MyBankDetails; EmailData = data.EmailData; Contracts = data.Contracts; ProgramFiles = data.ProgramFiles; QuickProgramList = data.QuickProgramList; DesktopIconList = data.DesktopIconList; Gateway = data.Gateway; TransactionHistory = data.TransactionHistory; Portfolio = data.Portfolio; Exchanges = data.Exchanges; QuickLaunchNames = data.QuickLaunchNames; SelectedOS = data.SelectedOS; Notifications = data.Notifications; Reminders = data.Reminders; Plans = data.Plans; Time = data.Time; OSName = data.OSName; GatewayLocation = data.GatewayLocation; GatewayPosX = data.GatewayPosX; GatewayPosY = data.GatewayPosY; Commands = data.Commands; SelectedOSInt = data.SelectedOSInt; SerialKey = data.Serialkey; ShortCommands = data.ShortCommands; GameVersion = data.GameVersion; } }