Refactorization.

This commit is contained in:
Milan Hanajik
2021-03-29 22:42:04 +02:00
parent 71c4f8f32f
commit bebb5e5909
3 changed files with 20 additions and 20 deletions
+4 -4
View File
@@ -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;