private int GetSourceLoad() { return(Rams.Select(x => x.LoadUsage).Sum() + Hards.Select(x => x.LoadUsage).Sum() + Cpus.Select(x => x.LoadUsage).Sum() + Gpus.Select(x => x.LoadUsage).Sum() + Networks.Select(x => x.LoadUsage).Sum() + Wirelesses.Select(x => x.LoadUsage).Sum() + Motherboard.LoadUsage); }
public Environment DeepClone() { return(new Environment(Cpus.Select(x => x.DeepClone()).ToArray())); }