Пример #1
0
        public static ModuleKISItem GetKisItem(Part part)
        {
            ModuleKISItem item = null;

            foreach (PartModule module in part.Modules)
            {
                if (module.moduleName == "ModuleKISItem")
                {
                    item = new ModuleKISItem(module);
                }
            }
            return(item);
        }
Пример #2
0
        public static bool Initialize()
        {
            var kisAssembly = AssemblyLoader.loadedAssemblies.FirstOrDefault(a => a.assembly.GetName().Name.Equals("KIS", StringComparison.InvariantCultureIgnoreCase));

            if (kisAssembly == null)
            {
                return(false);
            }
            KIS_Shared.Initialize();              //  kisAssembly.assembly);
            ModuleKISInventory.Initialize();      // kisAssembly.assembly);
            ModuleKISItem.Initialize();           // kisAssembly.assembly);
            W_KIS_Item.Initialize();              // kisAssembly.assembly);
            KIS_IconViewer.Initialize();          // kisAssembly.assembly);
            W_KIS_Item.ResourceInfo.Initialize(); // kisAssembly.assembly);
            return(true);
        }