7 if (IsRegisteredAtMilitaryBase())
10 editorManager.GetOnOpened().Insert(
Activate);
11 editorManager.GetOnClosed().Insert(
Deactivate);
17 if (IsRegisteredAtMilitaryBase())
20 editorManager.GetOnOpened().Remove(
Activate);
21 editorManager.GetOnClosed().Remove(
Deactivate);
26 bool IsRegisteredAtMilitaryBase()
28 SCR_CampaignBuildingEditorComponent CampaignBuildingEditorComponent = SCR_CampaignBuildingEditorComponent.Cast(SCR_CampaignBuildingEditorComponent.GetInstance(SCR_CampaignBuildingEditorComponent));
29 if (!CampaignBuildingEditorComponent)
32 SCR_CampaignBuildingProviderComponent providerComponent = CampaignBuildingEditorComponent.GetProviderComponent();
33 if (!providerComponent)
36 return providerComponent.CanRegisterAtMilitaryBase();