kOS.Suffixed.VesselTarget.GetPartsDubbed C# (CSharp) 메소드

GetPartsDubbed() 개인적인 메소드

private GetPartsDubbed ( StringValue searchTerm ) : ListValue
searchTerm StringValue
리턴 ListValue
        private ListValue GetPartsDubbed(StringValue searchTerm)
        {
            // Get the list of all the parts where the part's API name OR its GUI title or its tag name matches.
            List<global::Part> kspParts = new List<global::Part>();
            kspParts.AddRange(GetRawPartsNamed(searchTerm));
            kspParts.AddRange(GetRawPartsTitled(searchTerm));
            kspParts.AddRange(GetRawPartsTagged(searchTerm));

            // The "Distinct" operation is there because it's possible for someone to use a tag name that matches the part name.
            return PartValueFactory.Construct(kspParts.Distinct(), Shared);
        }