'Winiki lub E' support MeterTestRslt
This commit is contained in:
+3
-3
@@ -213,16 +213,16 @@ namespace TBF
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get an array of Pump-With-FM power percentages from a TransitionStep entity
|
||||
/// Get an array of Pump-With-FM power percentages from a string
|
||||
/// </summary>
|
||||
/// <param name="entity">TransitionStep entity</param>
|
||||
/// <param name="pumpWithFMPcts">String from TransitionStep entity defining all FM pump powers</param>
|
||||
/// <returns>float[] of FM-pump power percentages from 0 to 100.0f</returns>
|
||||
public static float[] GetPumpWithFMPcts(string pumpWithFMPcts)
|
||||
{
|
||||
int fmPumpCount = Rig.Sequences.SequenceBase.PumpsWithFM.Count;
|
||||
float[] result = new float[fmPumpCount];
|
||||
|
||||
string[] fmPctsStr = (pumpWithFMPcts != null) ? pumpWithFMPcts.Split(new char[] { ';' }) : new string[0];
|
||||
string[] fmPctsStr = string.IsNullOrEmpty(pumpWithFMPcts) ? new string[0] : pumpWithFMPcts.Split(new char[] { ';' });
|
||||
for (int i = 0; i < fmPumpCount; i++)
|
||||
{
|
||||
float fdummy;
|
||||
|
||||
Reference in New Issue
Block a user