37 {
38 Thermometer thermometer = Thermometer.Cast(action_data.m_MainItem);
39
40 if (thermometer)
41 {
42 float value = thermometer.GetTemperatureValue(action_data.m_Player);
43 action_data.m_Player.m_Hud.SetTemperature(value.
ToString() +
"#degrees_celsius");
44 }
45
46 }
proto string ToString(bool simple=true)