Esempio n. 1
0
        private static void loadPresets()
        {
            ConfigNode[]      presetNodes = GameDatabase.Instance.GetConfigNodes("SSTU_THRUSTCURVE");
            ThrustCurvePreset preset;
            int len = presetNodes.Length;

            presets = new ThrustCurvePreset[len];
            for (int i = 0; i < len; i++)
            {
                preset     = new ThrustCurvePreset(presetNodes[i]);
                presets[i] = preset;
            }
        }
        private void loadPresetCurve(string presetName)
        {
            ConfigNode[]      presetNodes = GameDatabase.Instance.GetConfigNodes("SSTU_THRUSTCURVE");
            ThrustCurvePreset preset;
            int len = presetNodes.Length;

            for (int i = 0; i < len; i++)
            {
                if (presetNodes[i].GetStringValue("name") == presetName)
                {
                    preset       = new ThrustCurvePreset(presetNodes[i]);
                    currentCurve = preset.curve;
                    break;
                }
            }
        }
Esempio n. 3
0
 private static void loadPresetCurve(ThrustCurvePreset preset)
 {
     setupCurveData(preset.curve);
     updateGraphTexture();
     presetName = preset.name;
 }
 private static void loadPresets()
 {
     ConfigNode[] presetNodes = GameDatabase.Instance.GetConfigNodes("SSTU_THRUSTCURVE");
     ThrustCurvePreset preset;
     int len = presetNodes.Length;
     presets = new ThrustCurvePreset[len];
     for (int i = 0; i < len; i++)
     {
         preset = new ThrustCurvePreset(presetNodes[i]);
         presets[i] = preset;
     }
 }
 private static void loadPresetCurve(ThrustCurvePreset preset)
 {
     setupCurveData(preset.curve);
     updateGraphTexture();
     presetName = preset.name;
 }