![]() |
|
Public Member Functions | |
| ScriptInvokerResourceOnPlayerInteraction | GetOnPlayerInteraction () |
| ScriptInvokerResourceOnPlayerInteraction | GetOnBeforePlayerInteraction () |
| void | RequestSubscription (RplId resourceComponentRplId, TypeName interactorType, EResourceType resourceType, EResourceGeneratorID resourceIdentifier) |
| void | RequestUnsubscription (RplId resourceComponentRplId, TypeName interactorType, EResourceType resourceType, EResourceGeneratorID resourceIdentifier) |
| void | RpcAsk_RequestSubscription (RplId resourceComponentRplId, string interactorType, EResourceType resourceType, EResourceGeneratorID resourceIdentifier) |
| void | RpcAsk_RequestUnsubscription (RplId resourceComponentRplId, string interactorType, EResourceType resourceType, EResourceGeneratorID resourceIdentifier) |
| void | RpcAsk_OnPlayerInteraction (EResourcePlayerInteractionType interactionType, RplId rplIdResourceComponentFrom, RplId rplIdResourceComponentTo, EResourceType resourceType, float resourceValue) |
| void | RpcAsk_ArsenalRequestItem (RplId resourceComponentRplId, RplId storageComponentRplId, ResourceName resourceNameItem, EResourceType resourceType) |
| void | RpcAsk_ArsenalRefundItem (RplId resourceComponentRplId, RplId inventoryItemRplId, EResourceType resourceType) |
| void | RpcAsk_MergeContainerWithContainer (RplId rplIdFrom, RplId rplIdTo, EResourceType resourceType) |
| void | RpcAsk_MergeContainerWithContainerPartial (RplId rplIdFrom, RplId rplIdTo, EResourceType resourceType, float requestedResources) |
| void | RpcAsk_CreatePhysicalContainerWithContainer (RplId resourceComponentRplId, RplId inventoryManagerRplId, RplId storageComponentRplId, EResourceType resourceType, float requestedResources) |
| void | OnPlayerInteraction (EResourcePlayerInteractionType interactionType, SCR_ResourceComponent resourceComponentFrom, SCR_ResourceComponent resourceComponentTo, EResourceType resourceType, float resourceValue, bool shouldBroadcast=true) |
| void | OnBeforePlayerInteraction (EResourcePlayerInteractionType interactionType, SCR_ResourceComponent resourceComponentFrom, SCR_ResourceComponent resourceComponentTo, EResourceType resourceType, float resourceValue) |
Static Public Member Functions | |
| static OnArsenalItemRequestedInvoker | GetOnArsenalItemRequested () |
| static void | FindSuitablePosition (inout vector position, float maxHorizontalOffset, float maxVerticalOffset) |
| Method used for finding a position at which supplies can be spawned. | |
Protected Member Functions | |
| SCR_ResourceActor | TryGetGenerationActor (notnull SCR_ResourceComponent resourceComponent, EResourceType resourceType, out float currentResourceValue, out float maxResourceValue) |
| SCR_ResourceActor | TryGetConsumptionActor (notnull SCR_ResourceComponent resourceComponent, EResourceType resourceType, out float currentResourceValue, out float maxResourceValue) |
| bool | CheckResourceConsumptionAvailability (notnull SCR_ResourceActor actor, float resourceValue) |
| Checks if it's possible to comnsume resourceValue resources from the specified actor. | |
| bool | CheckResourceGenerationAvailability (notnull SCR_ResourceActor actor, float resourceValue) |
| Checks if it's possible to generate resourceValue resources from the specified actor. | |
| bool | TryPerformResourceConsumption (notnull SCR_ResourceActor actor, float resourceValue, bool ignoreOnEmptyBehavior=false) |
| bool | TryPerformResourceGeneration (notnull SCR_ResourceActor actor, float resourceValue) |
| void | RpcAsk_ArsenalRequestItem_ (RplId resourceComponentRplId, RplId storageComponentRplId, ResourceName resourceNameItem, EResourceType resourceType) |
| void | RpcAsk_ArsenalRefundItem_ (RplId resourceComponentRplId, RplId inventoryItemRplId, EResourceType resourceType) |
| void | RpcAsk_MergeContainerWithContainerPartial_ (RplId rplIdFrom, RplId rplIdTo, EResourceType resourceType, float requestedResources) |
| void | RpcAsk_CreatePhysicalContainerWithContainer_ (RplId resourceComponentRplId, RplId inventoryManagerRplId, RplId storageComponentRplId, EResourceType resourceType, float requestedResources) |
| override void | OnDelete (IEntity owner) |
| Called when Entity is being to be destroyed (deleted) or component to be deleted (see Game::DeleteScriptComponent). | |
Static Protected Member Functions | |
| static bool | TraceFilter (notnull IEntity e, vector start=vector.Zero, vector dir=vector.Zero) |
| Method used to filter entities found by the trace. | |
Protected Attributes | |
| ref ScriptInvokerResourceOnPlayerInteraction | m_OnPlayerInteractionInvoker |
| ref ScriptInvokerResourceOnPlayerInteraction | m_OnBeforePlayerInteractionInvoker |
Static Protected Attributes | |
| static ref OnArsenalItemRequestedInvoker | s_OnArsenalItemRequested |
| const float | VERTICAL_SPAWN_OFFSET = 10 |
| const float | HORIZONTAL_SPAWN_OFFSET = 2.5 |
| const int | MAX_REFUNDING_DISTANCE_SQ = 900 |
| 30m to compensate for some large entities like Mi-8 which with arsenal truck can result in transaction across about 27m | |
|
protected |
Checks if it's possible to comnsume resourceValue resources from the specified actor.
| [in] | actor | Actor to consume from. |
| [in] | resourceValue | The resource value to consume. |
|
protected |
Checks if it's possible to generate resourceValue resources from the specified actor.
| [in] | actor | Actor to generate to. |
| [in] | resourceValue | The resource value to generate. |
|
static |
Method used for finding a position at which supplies can be spawned.
| [in,out] | position | around which we want to search |
| [in] | maxHorizontalOffset | determines how far the position can be on the X and Z axis |
| [in] | maxVerticalOffset | determines how much higher search will be starting |
|
static |
| ScriptInvokerResourceOnPlayerInteraction SCR_ResourcePlayerControllerInventoryComponent.GetOnBeforePlayerInteraction | ( | ) |
| ScriptInvokerResourceOnPlayerInteraction SCR_ResourcePlayerControllerInventoryComponent.GetOnPlayerInteraction | ( | ) |
| void SCR_ResourcePlayerControllerInventoryComponent.OnBeforePlayerInteraction | ( | EResourcePlayerInteractionType | interactionType, |
| SCR_ResourceComponent | resourceComponentFrom, | ||
| SCR_ResourceComponent | resourceComponentTo, | ||
| EResourceType | resourceType, | ||
| float | resourceValue ) |
| [in] | interactionType | |
| [in] | resourceComponentFrom | |
| [in] | resourceComponentTo | |
| [in] | resourceType | |
| [in] | resourceValue |
|
protected |
Called when Entity is being to be destroyed (deleted) or component to be deleted (see Game::DeleteScriptComponent).
| [in] | owner | Entity which owns the component |
| void SCR_ResourcePlayerControllerInventoryComponent.OnPlayerInteraction | ( | EResourcePlayerInteractionType | interactionType, |
| SCR_ResourceComponent | resourceComponentFrom, | ||
| SCR_ResourceComponent | resourceComponentTo, | ||
| EResourceType | resourceType, | ||
| float | resourceValue, | ||
| bool | shouldBroadcast = true ) |
| [in] | interactionType | |
| [in] | resourceComponentFrom | |
| [in] | resourceComponentTo | |
| [in] | resourceType | |
| [in] | resourceValue | |
| [in] | shouldBroadcast |
| void SCR_ResourcePlayerControllerInventoryComponent.RequestSubscription | ( | RplId | resourceComponentRplId, |
| TypeName | interactorType, | ||
| EResourceType | resourceType, | ||
| EResourceGeneratorID | resourceIdentifier ) |
| [in] | resourceComponentRplId | |
| [in] | interactorType | |
| [in] | resourceType | |
| [in] | resourceIdentifier |
| void SCR_ResourcePlayerControllerInventoryComponent.RequestUnsubscription | ( | RplId | resourceComponentRplId, |
| TypeName | interactorType, | ||
| EResourceType | resourceType, | ||
| EResourceGeneratorID | resourceIdentifier ) |
| [in] | resourceComponentRplId | |
| [in] | interactorType | |
| [in] | resourceType | |
| [in] | resourceIdentifier |
| void SCR_ResourcePlayerControllerInventoryComponent.RpcAsk_ArsenalRefundItem | ( | RplId | resourceComponentRplId, |
| RplId | inventoryItemRplId, | ||
| EResourceType | resourceType ) |
| [in] | resourceComponentRplId | RplId of the resource component of the arsenal which is going to be refunding the item |
| [in] | inventoryItemRplId | RplId of the inventory item component of the item that is being refunded |
| [in] | resourceType |
|
protected |
| [in] | resourceComponentRplId | RplId of the resource component of the arsenal which is going to be refunding the item |
| [in] | inventoryItemRplId | RplId of the inventory item component of the item that is being refunded |
| [in] | resourceType |
| void SCR_ResourcePlayerControllerInventoryComponent.RpcAsk_ArsenalRequestItem | ( | RplId | resourceComponentRplId, |
| RplId | storageComponentRplId, | ||
| ResourceName | resourceNameItem, | ||
| EResourceType | resourceType ) |
| [in] | resourceComponentRplId | RplId of the resource component of the arsenal which is going to be refunding the item |
| [in] | storageComponentRplId | RplId of the storage component inside of which item palced after it is spawned |
| [in] | resourceNameItem | Prefab that should be spawned |
| [in] | resourceType |
|
protected |
| [in] | resourceComponentRplId | RplId of the resource component of the arsenal which is going to be refunding the item |
| [in] | storageComponentRplId | RplId of the storage component inside of which item palced after it is spawned |
| [in] | resourceNameItem | Prefab that should be spawned |
| [in] | resourceType |
| void SCR_ResourcePlayerControllerInventoryComponent.RpcAsk_CreatePhysicalContainerWithContainer | ( | RplId | resourceComponentRplId, |
| RplId | inventoryManagerRplId, | ||
| RplId | storageComponentRplId, | ||
| EResourceType | resourceType, | ||
| float | requestedResources ) |
|
protected |
| [in] | resourceComponentRplId | |
| [in] | inventoryManagerRplId | |
| [in] | storageComponentRplId | |
| [in] | resourceType | |
| [in] | requestedResources |
| void SCR_ResourcePlayerControllerInventoryComponent.RpcAsk_MergeContainerWithContainer | ( | RplId | rplIdFrom, |
| RplId | rplIdTo, | ||
| EResourceType | resourceType ) |
| [in] | rplIdFrom | |
| [in] | rplIdTo | |
| [in] | resourceType |
| void SCR_ResourcePlayerControllerInventoryComponent.RpcAsk_MergeContainerWithContainerPartial | ( | RplId | rplIdFrom, |
| RplId | rplIdTo, | ||
| EResourceType | resourceType, | ||
| float | requestedResources ) |
| [in] | rplIdFrom | |
| [in] | rplIdTo | |
| [in] | resourceType | |
| [in] | requestedResources |
|
protected |
| [in] | rplIdFrom | |
| [in] | rplIdTo | |
| [in] | resourceType | |
| [in] | requestedResources |
| void SCR_ResourcePlayerControllerInventoryComponent.RpcAsk_OnPlayerInteraction | ( | EResourcePlayerInteractionType | interactionType, |
| RplId | rplIdResourceComponentFrom, | ||
| RplId | rplIdResourceComponentTo, | ||
| EResourceType | resourceType, | ||
| float | resourceValue ) |
| [in] | interactionType | |
| [in] | rplIdResourceComponentFrom | |
| [in] | rplIdResourceComponentTo | |
| [in] | resourceType | |
| [in] | resourceValue |
| void SCR_ResourcePlayerControllerInventoryComponent.RpcAsk_RequestSubscription | ( | RplId | resourceComponentRplId, |
| string | interactorType, | ||
| EResourceType | resourceType, | ||
| EResourceGeneratorID | resourceIdentifier ) |
| [in] | resourceComponentRplId | |
| [in] | interactorType | |
| [in] | resourceType | |
| [in] | resourceIdentifier |
| void SCR_ResourcePlayerControllerInventoryComponent.RpcAsk_RequestUnsubscription | ( | RplId | resourceComponentRplId, |
| string | interactorType, | ||
| EResourceType | resourceType, | ||
| EResourceGeneratorID | resourceIdentifier ) |
| [in] | resourceComponentRplId | |
| [in] | interactorType | |
| [in] | resourceType | |
| [in] | resourceIdentifier |
|
staticprotected |
Method used to filter entities found by the trace.
| [in] | e | |
| [in] | start | |
| [in] | dir |
|
protected |
|
protected |
|
protected |
| [in] | actor | from which we want to try to consume resources from |
| [in] | resourceValue | amount of resources that should be consumed |
| [in] | ignoreOnEmptyBehavior |
|
protected |
| [in] | actor | to which we want to try to add resources |
| [in] | resourceValue | amount of resources that should be added |
|
staticprotected |
|
protected |
|
protected |
|
staticprotected |
30m to compensate for some large entities like Mi-8 which with arsenal truck can result in transaction across about 27m
|
staticprotected |
|
staticprotected |