private static HardpointInfo GetStockHardpointsByLocationFunc(MechDef mechDef, ChassisLocations chassisLocation) { return(BattletechUtils.LoadStockMech(mechDef) .Inventory .Where(x => x.MountedLocation == chassisLocation) .Select(x => x.Def) .Select(x => new HardpointInfo(x)) .Aggregate(new HardpointInfo(), (x, y) => x + y)); }
private static HardpointInfo GetStockHardpointsNonCached(MechDef mechDef) { return(GetHardpoints(BattletechUtils.LoadStockMech(mechDef))); }