Example #1
0
        private static PartModule GetKerbalEvaModule(Vessel vessel)
        {
            if (vessel == null)
            {
                return(null);
            }

            var partSnapshot = VesselCommon.FindPartInVessel(vessel, "kerbalEVA");

            if (partSnapshot == null)
            {
                return(null);
            }

            return(VesselCommon.FindModuleInPart(partSnapshot, "KerbalEVA"));
        }