Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_NotificationPlayerBuildService.c
Go to the documentation of this file.
1 
8 {
9  override string GetText(SCR_NotificationData data)
10  {
11  int playerID, entityID, callsignID;
12  data.GetParams(playerID, entityID, callsignID);
13 
14  string playerName, entityName;
15  data.GetNotificationTextEntries(playerName, entityName);
16  if (!GetPlayerName(playerID, playerName) || !GetEditableEntityName(entityID, entityName, false))
17  return string.Empty;
18 
19  data.SetNotificationTextEntries(playerName, entityName, GetProviderCallsign(callsignID));
20  return super.GetText(data);
21  }
22 
23  //------------------------------------------------------------------------------------------------
24  private string GetProviderCallsign(int callsignID)
25  {
26  SCR_GameModeCampaign campaign = SCR_GameModeCampaign.GetInstance();
27 
28  if (!campaign)
29  return string.Empty;
30 
31  SCR_CampaignMilitaryBaseManager baseManager = campaign.GetBaseManager();
32  if (!baseManager)
33  return string.Empty;
34 
35  SCR_CampaignMilitaryBaseComponent base = baseManager.FindBaseByCallsign(callsignID);
36  if (!base)
37  return string.Empty;
38 
39  return base.GetCallsignDisplayNameOnly();
40  }
41 };
SCR_NotificationDisplayData
Definition: SCR_NotificationDisplayData.c:7
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
SCR_GameModeCampaign
void SCR_GameModeCampaign(IEntitySource src, IEntity parent)
Definition: SCR_GameModeCampaign.c:1927
ENotification
ENotification
Definition: ENotification.c:4
SCR_NotificationData
Definition: SCR_NotificationData.c:6
SCR_CampaignMilitaryBaseManager
Created in SCR_GameModeCampaign.
Definition: SCR_CampaignMilitaryBaseManager.c:21
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
SCR_CampaignMilitaryBaseComponent
Definition: SCR_CampaignMilitaryBaseComponent.c:38
SCR_NotificationPlayerBuildService
Definition: SCR_NotificationPlayerBuildService.c:7