|
Arma Reforger Script API
|
Public Member Functions | |
| override int | RegisterContainer (notnull SCR_ResourceContainer container) |
| Registers a container into the queue. | |
| override SCR_ResourceContainer | PopFirstContainer () |
| Removes from the queue the first container and returns it. | |
| override SCR_ResourceContainer | PopContainerAt (int index) |
| Removes from the queue the container at the specified index/position and returns it. | |
| override void | PerformSorting () |
| override array< SCR_ResourceContainer > | Clear () |
| Clears the queue. | |
| override void | Initialize (notnull SCR_ResourceInteractor interactor) |
| override float | UpdateContainerResourceValue (float currentValue, float previousValue) |
| override float | UpdateContainerMaxResourceValue (float currentValue, float previousValue) |
Public Member Functions inherited from SCR_ResourceContainerQueueBase | |
| float | GetAggregatedResourceValue () |
| Returns the current value of the aggregated resources pre-calculated by adding the current resource values of the containers registered into the container queue. | |
| float | GetAggregatedMaxResourceValue () |
| Returns the current maximum value of the aggregated resources pre-calculated by adding the maximum resource values of the containers registered into the container queue. | |
| SCR_ResourceContainer | GetFirstContainer () |
| Returns the first resource container in the queue. | |
| void | CopyContainers (inout notnull set< SCR_ResourceContainer > containers) |
| Copies the registered resource containers into a set of weak references of resource containers. | |
| void | CopyContainers (inout notnull array< SCR_ResourceContainer > containers) |
| Copies the registered resource containers into an array of weak references of resource containers. | |
| SCR_ResourceContainer | GetContainerAt (int index) |
| Returns a resource container located at the provided index/position in the queue. | |
| int | GetContainerCount () |
| Returns the number of registered containers in the queue. | |
| int | FindContainer (notnull SCR_ResourceContainer container) |
| Finds the position of a specified container in the queue and returns said position. | |
| void | SetAggregatedResourceValue (float value) |
| Assigns the current value of the aggregated resources to a specific value. | |
| void | SetAggregatedMaxResourceValue (float value) |
| Assigns the current maximum value of the aggregated resources to a specific value. | |
| void | IncreaseAggregatedResourceValue (float increment) |
| Increases the current value of the aggregated resources with a specific increment. | |
| void | DecreaseAggregatedResourceValue (float decrement) |
| Decreases the current value of the aggregated resources with a specific decrement. | |
| void | IncreaseAggregatedMaxResourceValue (float increment) |
| Increases the current maximum value of the aggregated resources with a specific increment. | |
| void | DecreaseAggregatedMaxResourceValue (float decrement) |
| Decreases the current maximum value of the aggregated resources with a specific decrement. | |
| void | DebugDraw () |
| void | SCR_ResourceContainerQueueBase () |
| Constructor. | |
| void | ~SCR_ResourceContainerQueueBase () |
| Destructor. | |
Protected Member Functions | |
| int | GetStoragePolicyCount () |
Protected Attributes | |
| ResourceInteractorType | m_Interactor |
| The interactor that owns the queue. | |
| ref array< ref SCR_ResourceStoragePolicyBase< ResourceInteractorType > > | m_StoragePolicies |
Protected Attributes inherited from SCR_ResourceContainerQueueBase | |
| SCR_ResourceComponent | m_ResourceComponent |
| ref array< SCR_ResourceContainer > | m_aRegisteredContainers = new array<SCR_ResourceContainer>() |
| float | m_fAggregatedResourceValue |
| float | m_fAggregatedMaxResourceValue |
Additional Inherited Members | |
Static Public Attributes inherited from SCR_ResourceContainerQueueBase | |
| static const int | FIRST_CONTAINER_INDEX = 0 |
| static const int | INVALID_CONTAINER_INDEX = -1 |
| static const int | INVALID_CONTAINER_COUNT = -1 |
| override array< SCR_ResourceContainer > SCR_ResourceContainerQueue< Class ResourceInteractorType >.Clear | ( | ) |
Clears the queue.
Implements SCR_ResourceContainerQueueBase.
|
protected |
| override void SCR_ResourceContainerQueue< Class ResourceInteractorType >.Initialize | ( | notnull SCR_ResourceInteractor | interactor | ) |
Implements SCR_ResourceContainerQueueBase.
| override void SCR_ResourceContainerQueue< Class ResourceInteractorType >.PerformSorting | ( | ) |
Implements SCR_ResourceContainerQueueBase.
| override SCR_ResourceContainer SCR_ResourceContainerQueue< Class ResourceInteractorType >.PopContainerAt | ( | int | index | ) |
Removes from the queue the container at the specified index/position and returns it.
| index | Index/position of the desired container in the queue, |
Implements SCR_ResourceContainerQueueBase.
| override SCR_ResourceContainer SCR_ResourceContainerQueue< Class ResourceInteractorType >.PopFirstContainer | ( | ) |
Removes from the queue the first container and returns it.
Implements SCR_ResourceContainerQueueBase.
| override int SCR_ResourceContainerQueue< Class ResourceInteractorType >.RegisterContainer | ( | notnull SCR_ResourceContainer | container | ) |
Registers a container into the queue.
| container | The container to be registered into the queue. |
Implements SCR_ResourceContainerQueueBase.
| override float SCR_ResourceContainerQueue< Class ResourceInteractorType >.UpdateContainerMaxResourceValue | ( | float | currentValue, |
| float | previousValue ) |
Implements SCR_ResourceContainerQueueBase.
| override float SCR_ResourceContainerQueue< Class ResourceInteractorType >.UpdateContainerResourceValue | ( | float | currentValue, |
| float | previousValue ) |
Implements SCR_ResourceContainerQueueBase.
|
protected |
The interactor that owns the queue.
|
protected |