Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_NotificationTaskStateChanged.c
Go to the documentation of this file.
3 {
4  override string GetText(SCR_NotificationData data)
5  {
6  int taskID, factionID;
7  data.GetParams(taskID, factionID);
8 
9  SCR_EditableEntityComponent entity = SCR_EditableEntityComponent.Cast(Replication.FindItem(taskID));
10  if (!entity)
11  return m_info.GetName();
12 
13  SCR_EditorTask task = SCR_EditorTask.Cast(entity.GetOwner());
14  if (!task)
15  return m_info.GetName();
16 
17  FactionManager factionManager = GetGame().GetFactionManager();
18  if (!factionManager)
19  return m_info.GetName();
20 
21  Faction faction = factionManager.GetFactionByIndex(factionID);
22  if (!faction)
23  return m_info.GetName();
24 
25  data.SetNotificationTextEntries(task.GetLocationName(), entity.GetDisplayName(), faction.GetUIInfo().GetName());
26  return super.GetText(data);
27  }
28 
29  override void SetPosition(SCR_NotificationData data)
30  {
31  if (!CanSetPosition(data))
32  return;
33 
34  int taskID, factionID;
35  data.GetParams(taskID, factionID);
36 
37  SetPositionDataEditableEntity(taskID, data);
38  }
39 
40  override bool MergeParam1With2()
41  {
42  return true;
43  }
44 };
SCR_NotificationDisplayData
Definition: SCR_NotificationDisplayData.c:7
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
ENotification
ENotification
Definition: ENotification.c:4
SCR_EditorTask
Definition: SCR_EditorTask.c:7
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
Faction
Definition: Faction.c:12
SCR_NotificationData
Definition: SCR_NotificationData.c:6
SCR_NotificationTaskStateChanged
Definition: SCR_NotificationTaskStateChanged.c:2
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468