7 protected SCR_CampaignBuildingManagerComponent m_BuildingManagerComponent;
8 protected SCR_CampaignBuildingProviderComponent m_ProviderComponent
9 protected bool m_bUserActionActivation;
12 override void EOnInit(IEntity owner)
14 BaseGameMode gameMode =
GetGame().GetGameMode();
18 m_BuildingManagerComponent = SCR_CampaignBuildingManagerComponent.Cast(gameMode.FindComponent(SCR_CampaignBuildingManagerComponent));
20 IEntity provider = GetParent();
24 m_ProviderComponent = SCR_CampaignBuildingProviderComponent.Cast(provider.FindComponent(SCR_CampaignBuildingProviderComponent));
25 if (m_ProviderComponent)
26 m_bUserActionActivation = m_ProviderComponent.GetUserActionInitOnly();
37 return core.GetEditorManager();