public string ToString(FieldInfo fieldInfo, bool showRaw) { if (fieldInfo.delta) { float scale = NetworkConfig.decoderPrecisionScales[fieldInfo.precision]; return("(" + ((int)m_ValueX * scale) + ", " + ((int)m_ValueY * scale) + ", " + ((int)m_ValueZ * scale) + ", " + ((int)m_ValueW * scale) + ")"); } else { return("(" + ConversionUtility.UInt32ToFloat(m_ValueX) + ", " + ConversionUtility.UInt32ToFloat(m_ValueY) + ", " + ConversionUtility.UInt32ToFloat(m_ValueZ) + ", " + ConversionUtility.UInt32ToFloat(m_ValueW) + ")"); } }
public string ToString(FieldInfo fieldInfo, bool showRaw) { if (showRaw) { return("" + m_Value); } else { if (fieldInfo.delta) { return("" + ((int)m_Value * NetworkConfig.decoderPrecisionScales[fieldInfo.precision])); } else { return("" + ConversionUtility.UInt32ToFloat(m_Value)); } } }