Exemple #1
0
        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));
        }
Exemple #2
0
        internal static EngineCoreRef GetEngineCoreRef(this IEnumerable <MechComponentRef> componentRefs)
        {
            var result = EngineSearcher.SearchInventory(componentRefs);

            return(result.CoreRef);
        }