Refactorization.
This commit is contained in:
+4
-4
@@ -193,12 +193,12 @@ namespace TBF
|
||||
/// </summary>
|
||||
/// <param name="entity">TransitionStep entity</param>
|
||||
/// <returns>float[] of regulation valve positions from 0 to 100.0f</returns>
|
||||
public static float[] GetRegulValvesPositions(TransitionStep step)
|
||||
public static float[] GetRegulValvesPositions(string regulValvesPct)
|
||||
{
|
||||
int regvCount = Rig.Sequences.SequenceBase.RegulValves.Count;
|
||||
float[] result = new float[regvCount];
|
||||
|
||||
string[] rvPosStr = (step.RegulValvesPct != null) ? step.RegulValvesPct.Split(new char[] { ';' }) : new string[0];
|
||||
string[] rvPosStr = (regulValvesPct != null) ? regulValvesPct.Split(new char[] { ';' }) : new string[0];
|
||||
for (int i = 0; i < regvCount; i++)
|
||||
{
|
||||
float fdummy;
|
||||
@@ -222,12 +222,12 @@ namespace TBF
|
||||
/// </summary>
|
||||
/// <param name="entity">TransitionStep entity</param>
|
||||
/// <returns>float[] of FM-pump power percentages from 0 to 100.0f</returns>
|
||||
public static float[] GetPumpWithFMPcts(TransitionStep step)
|
||||
public static float[] GetPumpWithFMPcts(string pumpWithFMPcts)
|
||||
{
|
||||
int fmPumpCount = Rig.Sequences.SequenceBase.PumpsWithFM.Count;
|
||||
float[] result = new float[fmPumpCount];
|
||||
|
||||
string[] fmPctsStr = (step.PumpWithFMPcts != null) ? step.PumpWithFMPcts.Split(new char[] { ';' }) : new string[0];
|
||||
string[] fmPctsStr = (pumpWithFMPcts != null) ? pumpWithFMPcts.Split(new char[] { ';' }) : new string[0];
|
||||
for (int i = 0; i < fmPumpCount; i++)
|
||||
{
|
||||
float fdummy;
|
||||
|
||||
Reference in New Issue
Block a user