Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Data Structures | |
class | SCR_CampaignBuildingManagerComponentClass |
Functions | |
SCR_CampaignBuildingManagerComponentClass SCR_BaseGameModeComponentClass | Attribute ("", UIWidgets.ResourcePickerThumbnail, "Prefab of trigger spawned on server to activate a building mode when player enters its range.", "et")] protected ResourceName m_sFreeRoamBuildingServerTrigger |
protected int m_iBuildingCycle SCR_CampaignBuildingCompositionOutlineManager | GetOutlineManager () |
protected bool | GetResourceComponent (IEntity owner, out SCR_ResourceComponent component) |
ResourceName | GetCompositionPreviewMaterial () |
ResourceName | GetServerTriggerResourceName () |
ResourceName | GetClientTriggerResourceName () |
void | SetTemporaryProvider (IEntity ent) |
IEntity | GetTemporaryProvider () |
bool | CanDisassembleSameFactionOnly () |
protected bool | GetSupplyComponent (IEntity ownerEntity, out SCR_CampaignSuppliesComponent suppliesComponent) |
Get supply component of the provider entity. More... | |
void | ProcesXPreward () |
Check if the number of cycles reaches a defined limit. If so, restart counter and send an RPC on server to add XP reward. More... | |
int | GetCompositionRefundPercentage () |
protected void | OnEntityCoreBudgetUpdated (EEditableEntityBudget entityBudget, int originalBudgetValue, int budgetChange, int updatedBudgetValue, SCR_EditableEntityComponent entity) |
override void | EOnInit (IEntity owner) |
override void | OnPostInit (IEntity owner) |
Called on PostInit when all components are added. More... | |
protected bool | IsProxy () |
void | GetPrefabListFromConfig () |
Load all the available compositions at the beginning of the game to be accessible without the building mode entity. More... | |
ResourceName | GetCompositionResourceName (int prefabID) |
int | GetCompositionId (ResourceName resName) |
void | GetEditorMode (int playerID, notnull IEntity provider, bool userActionActivationOnly=false, bool userActionUsed=false) |
protected void | SetEditorMode (notnull SCR_EditorManagerEntity editorManager, notnull SCR_EditorModeEntity modeEntity, int playerID, notnull IEntity provider, bool userActionActivationOnly=false, bool userActionUsed=false) |
void | PlayerDisconnected (int playerId, KickCauseCode cause, int timeout) |
void | EntitySpawnedByProvider (int prefabID, SCR_EditableEntityComponent editableEntity, int playerId) |
Event triggered when the entity is spawned by this provider. More... | |
protected void | SetOnPlayerDeathEvent (int playerID) |
protected void | RemoveOnPlayerDeathEvent (int playerID) |
protected void | SetOnProviderDestroyedEvent (IEntity provider) |
protected void | RemoveOnProviderDestroyedEvent (IEntity provider) |
protected void | OnPlayerDeath (SCR_CharacterControllerComponent characterController, IEntity instigatorEntity, notnull Instigator killer) |
protected void | OnProviderDestroyed (SCR_HitZone hitZone) |
bool | RemovePlayerIdFromProvider (int playerID, SCR_CampaignBuildingProviderComponent providerComponent) |
void | RemoveProvider (int playerID, SCR_CampaignBuildingProviderComponent providerComponent, bool isActiveUser) |
protected void | ToggleEditorMode (notnull SCR_EditorManagerEntity editorManager) |
protected void | RemoveEditorMode (int playerID) |
protected SCR_EditorManagerEntity | GetEditorManagerEntity (int playerID) |
Variables | |
protected ResourceName | m_sFreeRoamBuildingClientTrigger |
protected ResourceName | m_sPreviewMaterial |
protected EEditableEntityBudget | m_BudgetType |
protected int | m_iCompositionRefundPercentage |
protected int | m_iXpRewardTreshold |
protected bool | m_bSameFactionDisassembleOnly |
Note: Provider is saved to composition only when it's built from base. More... | |
protected ref SCR_CampaignBuildingCompositionOutlineManager | m_OutlineManager |
protected ResourceName | m_sPrefabsToBuildResource |
protected ref array< ResourceName > | m_aPlaceablePrefabs = {} |
protected SCR_EditableEntityCore | m_EntityCore |
protected IEntity | m_TemporaryProvider |
protected RplComponent | m_RplComponent |
SCR_CampaignBuildingManagerComponentClass SCR_BaseGameModeComponentClass Attribute | ( | "" | , |
UIWidgets. | ResourcePickerThumbnail, | ||
"Prefab of trigger spawned on server to activate a building mode when player enters its range." | , | ||
"et" | |||
) |
Interface for game mode extending components. Must be attached to a GameMode entity.
bool CanDisassembleSameFactionOnly | ( | ) |
Definition at line 117 of file SCR_CampaignBuildingManagerComponent.c.
void EntitySpawnedByProvider | ( | int | prefabID, |
SCR_EditableEntityComponent | editableEntity, | ||
int | playerId | ||
) |
Event triggered when the entity is spawned by this provider.
Definition at line 392 of file SCR_CampaignBuildingManagerComponent.c.
ResourceName GetClientTriggerResourceName | ( | ) |
Definition at line 95 of file SCR_CampaignBuildingManagerComponent.c.
int GetCompositionId | ( | ResourceName | resName | ) |
Returns composition id based on provided resource name.
[in] | resName |
Definition at line 314 of file SCR_CampaignBuildingManagerComponent.c.
ResourceName GetCompositionPreviewMaterial | ( | ) |
Definition at line 81 of file SCR_CampaignBuildingManagerComponent.c.
int GetCompositionRefundPercentage | ( | ) |
Get supplies from the composition cost that gets refunded on removal of composition
Definition at line 172 of file SCR_CampaignBuildingManagerComponent.c.
ResourceName GetCompositionResourceName | ( | int | prefabID | ) |
Search for a resource name of composition by given ID.
[in] | prefabID |
Definition at line 301 of file SCR_CampaignBuildingManagerComponent.c.
protected SCR_EditorManagerEntity GetEditorManagerEntity | ( | int | playerID | ) |
Definition at line 602 of file SCR_CampaignBuildingManagerComponent.c.
void GetEditorMode | ( | int | playerID, |
notnull IEntity | provider, | ||
bool | userActionActivationOnly = false , |
||
bool | userActionUsed = false |
||
) |
[in] | playerID | |
[in] | provider | |
[in] | userActionActivationOnly | |
[in] | userActionUsed |
Definition at line 324 of file SCR_CampaignBuildingManagerComponent.c.
protected int m_iBuildingCycle SCR_CampaignBuildingCompositionOutlineManager GetOutlineManager | ( | ) |
Definition at line 47 of file SCR_CampaignBuildingManagerComponent.c.
void GetPrefabListFromConfig | ( | ) |
Load all the available compositions at the beginning of the game to be accessible without the building mode entity.
Definition at line 284 of file SCR_CampaignBuildingManagerComponent.c.
protected bool GetResourceComponent | ( | IEntity | owner, |
out SCR_ResourceComponent | component | ||
) |
Definition at line 53 of file SCR_CampaignBuildingManagerComponent.c.
ResourceName GetServerTriggerResourceName | ( | ) |
Definition at line 88 of file SCR_CampaignBuildingManagerComponent.c.
protected bool GetSupplyComponent | ( | IEntity | ownerEntity, |
out SCR_CampaignSuppliesComponent | suppliesComponent | ||
) |
Get supply component of the provider entity.
Definition at line 125 of file SCR_CampaignBuildingManagerComponent.c.
IEntity GetTemporaryProvider | ( | ) |
Definition at line 109 of file SCR_CampaignBuildingManagerComponent.c.
protected bool IsProxy | ( | ) |
Definition at line 277 of file SCR_CampaignBuildingManagerComponent.c.
protected void OnEntityCoreBudgetUpdated | ( | EEditableEntityBudget | entityBudget, |
int | originalBudgetValue, | ||
int | budgetChange, | ||
int | updatedBudgetValue, | ||
SCR_EditableEntityComponent | entity | ||
) |
Definition at line 178 of file SCR_CampaignBuildingManagerComponent.c.
protected void OnPlayerDeath | ( | SCR_CharacterControllerComponent | characterController, |
IEntity | instigatorEntity, | ||
notnull Instigator | killer | ||
) |
Definition at line 474 of file SCR_CampaignBuildingManagerComponent.c.
protected void OnProviderDestroyed | ( | SCR_HitZone | hitZone | ) |
Method called when the provider was destroyed.
[in] | hitZone |
Definition at line 494 of file SCR_CampaignBuildingManagerComponent.c.
void PlayerDisconnected | ( | int | playerId, |
KickCauseCode | cause, | ||
int | timeout | ||
) |
Event raised when the player disconnects
[in] | playerId | |
[in] | cause | |
[in] | timeout |
Definition at line 381 of file SCR_CampaignBuildingManagerComponent.c.
void ProcesXPreward | ( | ) |
Check if the number of cycles reaches a defined limit. If so, restart counter and send an RPC on server to add XP reward.
Definition at line 150 of file SCR_CampaignBuildingManagerComponent.c.
protected void RemoveEditorMode | ( | int | playerID | ) |
Definition at line 588 of file SCR_CampaignBuildingManagerComponent.c.
protected void RemoveOnPlayerDeathEvent | ( | int | playerID | ) |
Definition at line 436 of file SCR_CampaignBuildingManagerComponent.c.
protected void RemoveOnProviderDestroyedEvent | ( | IEntity | provider | ) |
Definition at line 462 of file SCR_CampaignBuildingManagerComponent.c.
bool RemovePlayerIdFromProvider | ( | int | playerID, |
SCR_CampaignBuildingProviderComponent | providerComponent | ||
) |
Remove the provided player id from list of active and available users, return true if the user was in the list of active users
[in] | playerID | |
[in] | providerComponent |
Definition at line 529 of file SCR_CampaignBuildingManagerComponent.c.
void RemoveProvider | ( | int | playerID, |
SCR_CampaignBuildingProviderComponent | providerComponent, | ||
bool | isActiveUser | ||
) |
[in] | playerID | |
[in] | providerComponent | |
[in] | isActiveUser |
Definition at line 544 of file SCR_CampaignBuildingManagerComponent.c.
protected void SetEditorMode | ( | notnull SCR_EditorManagerEntity | editorManager, |
notnull SCR_EditorModeEntity | modeEntity, | ||
int | playerID, | ||
notnull IEntity | provider, | ||
bool | userActionActivationOnly = false , |
||
bool | userActionUsed = false |
||
) |
Definition at line 341 of file SCR_CampaignBuildingManagerComponent.c.
protected void SetOnPlayerDeathEvent | ( | int | playerID | ) |
Definition at line 422 of file SCR_CampaignBuildingManagerComponent.c.
protected void SetOnProviderDestroyedEvent | ( | IEntity | provider | ) |
Definition at line 450 of file SCR_CampaignBuildingManagerComponent.c.
void SetTemporaryProvider | ( | IEntity | ent | ) |
[in] | ent |
Definition at line 102 of file SCR_CampaignBuildingManagerComponent.c.
protected void ToggleEditorMode | ( | notnull SCR_EditorManagerEntity | editorManager | ) |
Definition at line 580 of file SCR_CampaignBuildingManagerComponent.c.
protected ref array<ResourceName> m_aPlaceablePrefabs = {} |
Definition at line 38 of file SCR_CampaignBuildingManagerComponent.c.
protected bool m_bSameFactionDisassembleOnly |
Note: Provider is saved to composition only when it's built from base.
Definition at line 30 of file SCR_CampaignBuildingManagerComponent.c.
protected EEditableEntityBudget m_BudgetType |
Definition at line 20 of file SCR_CampaignBuildingManagerComponent.c.
protected SCR_EditableEntityCore m_EntityCore |
Definition at line 40 of file SCR_CampaignBuildingManagerComponent.c.
protected int m_iCompositionRefundPercentage |
Definition at line 23 of file SCR_CampaignBuildingManagerComponent.c.
protected int m_iXpRewardTreshold |
Definition at line 26 of file SCR_CampaignBuildingManagerComponent.c.
protected ref SCR_CampaignBuildingCompositionOutlineManager m_OutlineManager |
Definition at line 33 of file SCR_CampaignBuildingManagerComponent.c.
protected RplComponent m_RplComponent |
Definition at line 42 of file SCR_CampaignBuildingManagerComponent.c.
protected ResourceName m_sFreeRoamBuildingClientTrigger |
Definition at line 14 of file SCR_CampaignBuildingManagerComponent.c.
protected ResourceName m_sPrefabsToBuildResource |
Definition at line 36 of file SCR_CampaignBuildingManagerComponent.c.
protected ResourceName m_sPreviewMaterial |
Definition at line 17 of file SCR_CampaignBuildingManagerComponent.c.
protected IEntity m_TemporaryProvider |
Definition at line 41 of file SCR_CampaignBuildingManagerComponent.c.