14 int playerID, weatherIndex;
15 data.GetParams(playerID, weatherIndex);
18 data.GetNotificationTextEntries(playerName);
19 if (!GetPlayerName(playerID, playerName))
23 TimeAndWeatherManagerEntity weatherManager = world.GetTimeAndWeatherManager();
27 array<ref WeatherState> weatherStates =
new array<ref WeatherState>;
28 weatherManager.GetWeatherStatesList(weatherStates);
29 if (weatherIndex >= weatherStates.Count() )
32 data.SetNotificationTextEntries(playerName, weatherStates[weatherIndex].GetLocalizedName());
34 return super.GetText(
data);