internal static Engine GetEngine(this IEnumerable <MechComponentRef> componentRefs) { var result = EngineSearcher.SearchInventory(componentRefs); if (result.CoreRef == null) { return(null); } return(new Engine(result.CoreRef, result.Weights, result.HeatSinks)); }
internal static EngineCoreRef GetEngineCoreRef(this IEnumerable <MechComponentRef> componentRefs) { var result = EngineSearcher.SearchInventory(componentRefs); return(result.CoreRef); }