Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_FreeRoamBuildingBaseTriggerEntity.c
Go to the documentation of this file.
2 {
3 };
4 
5 class SCR_FreeRoamBuildingBaseTriggerEntity : ScriptedGameTriggerEntity
6 {
7  protected SCR_CampaignBuildingManagerComponent m_BuildingManagerComponent;
8  protected SCR_CampaignBuildingProviderComponent m_ProviderComponent
9  protected bool m_bUserActionActivation;
10 
11  //------------------------------------------------------------------------------------------------
12  override void EOnInit(IEntity owner)
13  {
14  BaseGameMode gameMode = GetGame().GetGameMode();
15  if (!gameMode)
16  return;
17 
18  m_BuildingManagerComponent = SCR_CampaignBuildingManagerComponent.Cast(gameMode.FindComponent(SCR_CampaignBuildingManagerComponent));
19 
20  IEntity provider = GetParent();
21  if (!provider)
22  return;
23 
24  m_ProviderComponent = SCR_CampaignBuildingProviderComponent.Cast(provider.FindComponent(SCR_CampaignBuildingProviderComponent));
25  if (m_ProviderComponent)
26  m_bUserActionActivation = m_ProviderComponent.GetUserActionInitOnly();
27  }
28 
29  //------------------------------------------------------------------------------------------------
31  protected SCR_EditorManagerEntity GetEditorManager()
32  {
34  if (!core)
35  return null;
36 
37  return core.GetEditorManager();
38  }
39 
40  //------------------------------------------------------------------------------------------------
41  void SCR_FreeRoamBuildingBaseTriggerEntity(IEntitySource src, IEntity parent)
42  {
43  }
44 };
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
ScriptedGameTriggerEntityClass
Definition: ScriptedGameTriggerEntity.c:12
SCR_FreeRoamBuildingBaseTriggerEntityClass
Definition: SCR_FreeRoamBuildingBaseTriggerEntity.c:1
SCR_EditorManagerCore
Core component to manage SCR_EditorManagerEntity.
Definition: SCR_EditorManagerCore.c:5
SCR_FreeRoamBuildingBaseTriggerEntity
Definition: SCR_FreeRoamBuildingBaseTriggerEntity.c:5
SCR_EditorManagerEntity
Definition: SCR_EditorManagerEntity.c:26