public void SetRandomBetween(Vector2 min, Vector2 max) { Min = min; Max = max; TwoDimensions = true; StartValueType = StartingValue.Random; }
public void SetRandomBetween(float min, float max) { Min = new Vector2(min, min); Max = new Vector2(max, max); TwoDimensions = false; StartValueType = StartingValue.Random; }
public void SetRandomBetween(float min, float max) { Min = min; Max = max; StartValueType = StartingValue.Random; maxLife = max; }
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); }
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; }
public void SetRandomCurve(Curve2 curve) { Curve = curve; TwoDimensions = true; StartValueType = StartingValue.RandomCurve; }
public void SetNormal(float value) { Min = new Vector2(value, value); TwoDimensions = false; StartValueType = StartingValue.Normal; }
public void SetNormal(Vector2 value) { Min = value; TwoDimensions = true; StartValueType = StartingValue.Normal; }
public ScaleConfig() { StartValueType = StartingValue.Normal; Min = new Vector2(1.0f, 1.0f); }
public void SetRandomCurve(Curve4 curve) { Curve = curve; StartValueType = StartingValue.RandomCurve; }
public void SetRandomBetween(Vector4 min, Vector4 max) { Min = min; Max = max; StartValueType = StartingValue.Random; }
public void SetNormal(Vector4 value) { Min = value; StartValueType = StartingValue.Normal; }
public ColorConfig() { Min = new Vector4(0, 1.0f, 1.0f, 1.0f); StartValueType = StartingValue.Normal; }
public void SetNormal(float value) { Min = value; StartValueType = StartingValue.Normal; }
public void SetRandomCurve(Curve curve) { Curve = new Curve2(curve, curve); TwoDimensions = false; StartValueType = StartingValue.RandomCurve; }