14 int playerID, windSpeed, windDirectionIndex;
15 string windDirection =
"UNKNOWN";
16 data.GetParams(playerID, windSpeed, windDirectionIndex);
19 data.GetNotificationTextEntries(playerName);
20 if (!GetPlayerName(playerID, playerName))
24 TimeAndWeatherManagerEntity weatherManager = world.GetTimeAndWeatherManager();
25 SCR_WindDirectionInfo windDirectionInfo;
26 if (weatherManager && weatherManager.GetWindDirectionInfoFromIndex(windDirectionIndex, windDirectionInfo))
27 windDirection = windDirectionInfo.GetUIInfo().GetName();
29 float windSpeedFloat = windSpeed / 1000;
31 data.SetNotificationTextEntries(playerName, windSpeedFloat.ToString(), windDirection);
33 return super.GetText(
data);