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_NotificationWindChanged.c
Go to the documentation of this file.
1
9
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleEnum
(
ENotification
,
"m_NotificationKey"
)]
10
class
SCR_NotificationWindChanged
:
SCR_NotificationPlayer
11
{
12
override
string
GetText
(
SCR_NotificationData
data
)
13
{
14
int
playerID, windSpeed, windDirectionIndex;
15
string
windDirection =
"UNKNOWN"
;
16
data
.GetParams(playerID, windSpeed, windDirectionIndex);
17
18
string
playerName;
19
data
.GetNotificationTextEntries(playerName);
20
if
(!
GetPlayerName
(playerID, playerName))
21
return
string
.Empty;
22
23
ChimeraWorld
world =
GetGame
().GetWorld();
24
TimeAndWeatherManagerEntity
weatherManager = world.GetTimeAndWeatherManager();
25
SCR_WindDirectionInfo
windDirectionInfo;
26
if
(weatherManager && weatherManager.
GetWindDirectionInfoFromIndex
(windDirectionIndex, windDirectionInfo))
27
windDirection = windDirectionInfo.
GetUIInfo
().GetName();
28
29
float
windSpeedFloat = windSpeed / 1000;
30
31
data
.SetNotificationTextEntries(playerName, windSpeedFloat.ToString(), windDirection);
32
33
return
super.GetText(
data
);
34
}
35
};
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_NotificationWindChanged
Definition
SCR_NotificationWindChanged.c:11
SCR_WindDirectionInfo
Definition
TimeAndWeatherManagerEntity.c:1197
SCR_WindDirectionInfo::GetUIInfo
SCR_UIInfo GetUIInfo()
Definition
TimeAndWeatherManagerEntity.c:1206
TimeAndWeatherManagerEntity
Definition
TimeAndWeatherManagerEntity.c:26
TimeAndWeatherManagerEntity::GetWindDirectionInfoFromIndex
bool GetWindDirectionInfoFromIndex(int index, out SCR_WindDirectionInfo windDirectionInfo)
Definition
TimeAndWeatherManagerEntity.c:593
scripts
Game
Network
Notifications
NotificationDisplayData
SCR_NotificationWindChanged.c
Generated by
1.17.0