Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_NotificationWeatherChanged.c
Go to the documentation of this file.
1
9
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleEnum
(
ENotification
,
"m_NotificationKey"
)]
10
class
SCR_NotificationWeatherChanged
:
SCR_NotificationPlayer
11
{
12
override
string
GetText
(
SCR_NotificationData
data
)
13
{
14
int
playerID, weatherIndex;
15
data
.GetParams(playerID, weatherIndex);
16
17
string
playerName;
18
data
.GetNotificationTextEntries(playerName);
19
if
(!
GetPlayerName
(playerID, playerName))
20
return
string
.Empty;
21
22
ChimeraWorld
world =
GetGame
().GetWorld();
23
TimeAndWeatherManagerEntity
weatherManager = world.GetTimeAndWeatherManager();
24
if
(!weatherManager)
25
return
string
.Empty;
26
27
array<ref WeatherState> weatherStates =
new
array<ref WeatherState>;
28
weatherManager.GetWeatherStatesList(weatherStates);
29
if
(weatherIndex >= weatherStates.Count() )
30
return
string
.Empty;
31
32
data
.SetNotificationTextEntries(playerName, weatherStates[weatherIndex].GetLocalizedName());
33
34
return
super.GetText(
data
);
35
}
36
};
ENotification
ENotification
Definition
ENotification.c:5
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
GetText
string GetText()
Definition
SCR_BaseEditorAttribute.c:488
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition
SCR_CampaignHintStorage.c:22
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
ChimeraWorld
Definition
ChimeraWorld.c:13
SCR_NotificationData
Definition
SCR_NotificationData.c:7
SCR_NotificationDisplayData::GetPlayerName
bool GetPlayerName(int playerID, out string playerName)
Definition
SCR_NotificationDisplayData.c:160
SCR_NotificationPlayer
Definition
SCR_NotificationPlayer.c:11
SCR_NotificationWeatherChanged
Definition
SCR_NotificationWeatherChanged.c:11
TimeAndWeatherManagerEntity
Definition
TimeAndWeatherManagerEntity.c:26
scripts
Game
Network
Notifications
NotificationDisplayData
SCR_NotificationWeatherChanged.c
Generated by
1.17.0