private void RebuildModel()
        {
            Debug.Log("FillItUp.RebuildModel");
            FuelTypes.Discover(EditorLogic.fetch.ship, out allShipResources, out allPartsResourcesByStage, out allPartsResourcesShip);

            _resourcesByStage.SetFuelTypes(allShipResources);
            _resourcesShip.SetFuelTypes(allShipResources);
        }
예제 #2
0
        private void RebuildModel()
        {
            if (!HighLogic.LoadedSceneIsEditor)
            {
                return;
            }

            FuelTypes.Discover(EditorLogic.fetch.ship, ref allShipResources, ref allPartsResourcesByStage, out allPartsResourcesShip);

            _resourcesByStage.SetFuelTypes(allShipResources);
            _resourcesShip.SetFuelTypes(allShipResources);
        }