//generates the readout string from a body part's properties string GetValuesString(partProperties props) { string output = ""; for (int i = 0; i < props.values.Length; i++) { output += aspectShorthands[i] + ": "; if (props.values[i] < 0) { output += "N//N"; } else if (props.values[i] == 0) { output += errors[i]; } else if (props.values[i] == 1) { output += "NMNL"; } else { output += "GOOD"; } output += "\n"; } return(output); }
void GenerateDefaultValues() { for (int i = 0; i < partNames.Length; i++) { partProperties generatedProps = new partProperties(new int[] { 2, 2, 2, 2, -1, -1 }); //generate additional props if necessary if (partNames[i] == "ArmL" || partNames[i] == "ArmR") { generatedProps.values[4] = 2; } if (partNames[i] == "LegL" || partNames[i] == "LegR") { generatedProps.values[5] = 2; } bodyParts[partNames[i]] = generatedProps; } }