Exemplo n.º 1
0
        public ModuleMenuWindow(MKStationWindow mKStationWindow)
        {
            doCloseX = true;

            mkStationWindow = mKStationWindow;

            canUse = new Dictionary <MKStationModuleDef, string>();
            foreach (var module in DefDatabase <MKStationModuleDef> .AllDefs)
            {
                if (!CanUseRightNow(module.Item, mkStationWindow.mkStation.Map, out string reason))
                {
                    canUse.Add(module, reason);
                }
            }
        }
Exemplo n.º 2
0
        public ArmorModuleWindow(MKStationWindow mKStationWindow, ArmorModuleCategory category)
        {
            doCloseX = true;

            tab = category;

            mkStationWindow = mKStationWindow;

            canUse = new Dictionary <ArmorModuleDef, string>();
            foreach (var module in DefDatabase <ArmorModuleDef> .AllDefs)
            {
                if (!CanUseRightNow(module.Item, mkStationWindow.mkStation.Map, module, out string reason))
                {
                    canUse.Add(module, reason);
                }
            }
        }