Esempio n. 1
0
 public void SetRandomBetween(Vector2 min, Vector2 max)
 {
     Min            = min;
     Max            = max;
     TwoDimensions  = true;
     StartValueType = StartingValue.Random;
 }
Esempio n. 2
0
 public void SetRandomBetween(float min, float max)
 {
     Min            = new Vector2(min, min);
     Max            = new Vector2(max, max);
     TwoDimensions  = false;
     StartValueType = StartingValue.Random;
 }
Esempio n. 3
0
 public void SetRandomBetween(float min, float max)
 {
     Min            = min;
     Max            = max;
     StartValueType = StartingValue.Random;
     maxLife        = max;
 }
Esempio n. 4
0
        public override string ToString()
        {
            string output = "";

            output += "Starting value of " + StartingValue.ToString("C");
            output += " and salvage value of " + SalvageValue.ToString("C");
            output += " after " + Lifetime;
            output += " years, has a value of " + CurrentValue.ToString("C");
            output += " at year " + Age;
            return(output);
        }
Esempio n. 5
0
            public void SetRandomCurve(Curve curve)
            {
                Curve          = curve;
                StartValueType = StartingValue.RandomCurve;

                float maxFound = 0.0f;

                foreach (CurveKey curveKey in curve.Keys)
                {
                    if (curveKey.Value > maxFound)
                    {
                        maxFound = curveKey.Value;
                    }
                }
                maxLife = maxFound;
            }
Esempio n. 6
0
 public void SetRandomCurve(Curve2 curve)
 {
     Curve          = curve;
     TwoDimensions  = true;
     StartValueType = StartingValue.RandomCurve;
 }
Esempio n. 7
0
 public void SetNormal(float value)
 {
     Min            = new Vector2(value, value);
     TwoDimensions  = false;
     StartValueType = StartingValue.Normal;
 }
Esempio n. 8
0
 public void SetNormal(Vector2 value)
 {
     Min            = value;
     TwoDimensions  = true;
     StartValueType = StartingValue.Normal;
 }
Esempio n. 9
0
 public ScaleConfig()
 {
     StartValueType = StartingValue.Normal;
     Min            = new Vector2(1.0f, 1.0f);
 }
Esempio n. 10
0
 public void SetRandomCurve(Curve4 curve)
 {
     Curve          = curve;
     StartValueType = StartingValue.RandomCurve;
 }
Esempio n. 11
0
 public void SetRandomBetween(Vector4 min, Vector4 max)
 {
     Min            = min;
     Max            = max;
     StartValueType = StartingValue.Random;
 }
Esempio n. 12
0
 public void SetNormal(Vector4 value)
 {
     Min            = value;
     StartValueType = StartingValue.Normal;
 }
Esempio n. 13
0
 public ColorConfig()
 {
     Min            = new Vector4(0, 1.0f, 1.0f, 1.0f);
     StartValueType = StartingValue.Normal;
 }
Esempio n. 14
0
 public void SetNormal(float value)
 {
     Min            = value;
     StartValueType = StartingValue.Normal;
 }
Esempio n. 15
0
 public void SetRandomCurve(Curve curve)
 {
     Curve          = new Curve2(curve, curve);
     TwoDimensions  = false;
     StartValueType = StartingValue.RandomCurve;
 }