Ejemplo n.º 1
0
        private void updatePartResources()
        {
            float resourceScalar = Mathf.Pow(getScale(), thrustScalePower);
            float currentVolume  = resourceVolume * resourceScalar;

            SSTUResourceList list = new SSTUResourceList();

            fuelType.addResources(list, currentVolume);
            list.setResourcesToPart(part, 1, HighLogic.LoadedSceneIsFlight);
        }
Ejemplo n.º 2
0
        private void updatePartResources()
        {
            float resourceScalar = Mathf.Pow(getScale(), thrustScalePower);
            float currentVolume  = resourceVolume * resourceScalar;

            if (!SSTUModInterop.onPartFuelVolumeUpdate(part, currentVolume * 1000))
            {
                SSTUResourceList list = new SSTUResourceList();
                fuelType.addResources(list, currentVolume);
                list.setResourcesToPart(part);
            }
        }