Exemple #1
0
        internal static bool InitTypes()
        {
            AssemblyLoader.loadedAssemblies.TypeOperation(t => {
                switch (t.FullName)
                {
                case "MuMech.MechJebCore":
                    type = t;
                    getComputerModule = t.GetMethod("GetComputerModule", new Type[] { typeof(string) });
                    break;

                default:
                    bool unused = AscentAutopilot.InitTypes(t) || ComputerModule.InitTypes(t) || EditableVariables.InitTypes(t) || Operation.InitTypes(t) || TimeSelector.InitTypes(t) || VesselExtensions.InitTypes(t);
                    break;
                }
            });

            return(type != null);
        }