Skip to content

Commit

Permalink
Trying to fix Serialize for MultiInputCurve.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed May 15, 2014
1 parent 76b0823 commit 11632e6
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions MultiInputCurve.cs
Expand Up @@ -10,11 +10,32 @@
public class MultiInputCurve
{
public string name;
public FXCurve[] curves = new FXCurve[inputsCount];
public FXCurve[] logCurves = new FXCurve[inputsCount];
private FXCurve[] _curves = new FXCurve[inputsCount];
public FXCurve[] curves
{
get { return _curves; }
set { _curves = value; }
}

private FXCurve[] _logCurves = new FXCurve[inputsCount];
public FXCurve[] logCurves
{
get { return _logCurves; }
set { _logCurves = value; }
}

public float[] minKey = new float[inputsCount];
public float[] maxKey = new float[inputsCount];
private float[] _minKey = new float[inputsCount];
public float[] minKey
{
get { return _minKey; }
set { _minKey = value; }
}
private float[] _maxKey = new float[inputsCount];
public float[] maxKey
{
get { return _maxKey; }
set { _maxKey = value; }
}

public float minVal;
public float maxVal;
Expand All @@ -30,7 +51,8 @@ public enum Inputs
externaltemp = 4
}

public static readonly int inputsCount = Enum.GetValues(typeof(Inputs)).Length;
//public static readonly int inputsCount = Enum.GetValues(typeof(Inputs)).Length;
public const int inputsCount = 5;

public MultiInputCurve(string name, bool additive = false)
{
Expand Down

0 comments on commit 11632e6

Please sign in to comment.