|
Arma Reforger Script API
|
Public Member Functions | |
| 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 | RegisterContainer (notnull SCR_ResourceContainer container) |
| Registers a container into the queue. | |
| int | FindContainer (notnull SCR_ResourceContainer container) |
| Finds the position of a specified container in the queue and returns said position. | |
| SCR_ResourceContainer | PopFirstContainer () |
| Removes from the queue the first container and returns it. | |
| SCR_ResourceContainer | PopContainerAt (int index) |
| Removes from the queue the container at the specified index/position and returns it. | |
| 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. | |
| array< SCR_ResourceContainer > | Clear () |
| Clears and resets the queue. | |
| void | PerformSorting () |
| void | Initialize (notnull SCR_ResourceInteractor interactor) |
| void | DebugDraw () |
| float | UpdateContainerResourceValue (float currentValue, float previousValue) |
| float | UpdateContainerMaxResourceValue (float currentValue, float previousValue) |
| void | SCR_ResourceContainerQueueBase () |
| Constructor. | |
| void | ~SCR_ResourceContainerQueueBase () |
| Destructor. | |
Static Public Attributes | |
| static const int | FIRST_CONTAINER_INDEX = 0 |
| static const int | INVALID_CONTAINER_INDEX = -1 |
| static const int | INVALID_CONTAINER_COUNT = -1 |
Protected Attributes | |
| SCR_ResourceComponent | m_ResourceComponent |
| ref array< SCR_ResourceContainer > | m_aRegisteredContainers = new array<SCR_ResourceContainer>() |
| float | m_fAggregatedResourceValue |
| float | m_fAggregatedMaxResourceValue |
| void SCR_ResourceContainerQueueBase.SCR_ResourceContainerQueueBase | ( | ) |
Constructor.
| void SCR_ResourceContainerQueueBase.~SCR_ResourceContainerQueueBase | ( | ) |
Destructor.
| array< SCR_ResourceContainer > SCR_ResourceContainerQueueBase.Clear | ( | ) |
Clears and resets the queue.
TODO: Optimize this.
Implemented in SCR_ResourceContainerQueue< Class ResourceInteractorType >.
| void SCR_ResourceContainerQueueBase.CopyContainers | ( | inout notnull array< SCR_ResourceContainer > | containers | ) |
Copies the registered resource containers into an array of weak references of resource containers.
| [in,out] | containers | The array to copy into. |
| void SCR_ResourceContainerQueueBase.CopyContainers | ( | inout notnull set< SCR_ResourceContainer > | containers | ) |
Copies the registered resource containers into a set of weak references of resource containers.
| [in,out] | containers | The set to copy into. |
| void SCR_ResourceContainerQueueBase.DebugDraw | ( | ) |
| void SCR_ResourceContainerQueueBase.DecreaseAggregatedMaxResourceValue | ( | float | decrement | ) |
Decreases the current maximum value of the aggregated resources with a specific decrement.
| decrement | The desired value to be decremented on the current maximum value of the aggregated resources. |
| void SCR_ResourceContainerQueueBase.DecreaseAggregatedResourceValue | ( | float | decrement | ) |
Decreases the current value of the aggregated resources with a specific decrement.
| decrement | The desired value to be decremented on the current value of the aggregated resources. |
| int SCR_ResourceContainerQueueBase.FindContainer | ( | notnull SCR_ResourceContainer | container | ) |
Finds the position of a specified container in the queue and returns said position.
| container | The container to ne found in the queue. |
| float SCR_ResourceContainerQueueBase.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.
| float SCR_ResourceContainerQueueBase.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.
| SCR_ResourceContainer SCR_ResourceContainerQueueBase.GetContainerAt | ( | int | index | ) |
Returns a resource container located at the provided index/position in the queue.
| index | Index/position of the desired container in the queue, |
| int SCR_ResourceContainerQueueBase.GetContainerCount | ( | ) |
Returns the number of registered containers in the queue.
| SCR_ResourceContainer SCR_ResourceContainerQueueBase.GetFirstContainer | ( | ) |
Returns the first resource container in the queue.
| void SCR_ResourceContainerQueueBase.IncreaseAggregatedMaxResourceValue | ( | float | increment | ) |
Increases the current maximum value of the aggregated resources with a specific increment.
| increment | The desired value to be incremented on the current maximum value of the aggregated resources. |
| void SCR_ResourceContainerQueueBase.IncreaseAggregatedResourceValue | ( | float | increment | ) |
Increases the current value of the aggregated resources with a specific increment.
| increment | The desired value to be incremented on the current value of the aggregated resources. |
| void SCR_ResourceContainerQueueBase.Initialize | ( | notnull SCR_ResourceInteractor | interactor | ) |
Implemented in SCR_ResourceContainerQueue< Class ResourceInteractorType >.
| void SCR_ResourceContainerQueueBase.PerformSorting | ( | ) |
Implemented in SCR_ResourceContainerQueue< Class ResourceInteractorType >.
| SCR_ResourceContainer SCR_ResourceContainerQueueBase.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, |
Implemented in SCR_ResourceContainerQueue< Class ResourceInteractorType >.
| SCR_ResourceContainer SCR_ResourceContainerQueueBase.PopFirstContainer | ( | ) |
Removes from the queue the first container and returns it.
Implemented in SCR_ResourceContainerQueue< Class ResourceInteractorType >.
| int SCR_ResourceContainerQueueBase.RegisterContainer | ( | notnull SCR_ResourceContainer | container | ) |
Registers a container into the queue.
| container | The container to be registered into the queue. |
Implemented in SCR_ResourceContainerQueue< Class ResourceInteractorType >, and SCR_ResourceEncapsulatorContainerQueue.
| void SCR_ResourceContainerQueueBase.SetAggregatedMaxResourceValue | ( | float | value | ) |
Assigns the current maximum value of the aggregated resources to a specific value.
| value | The desired value to be assigned for the current maximum value of the aggregated resources. |
| void SCR_ResourceContainerQueueBase.SetAggregatedResourceValue | ( | float | value | ) |
Assigns the current value of the aggregated resources to a specific value.
| value | The desired value to be assigned for the current value of the aggregated resources. |
| float SCR_ResourceContainerQueueBase.UpdateContainerMaxResourceValue | ( | float | currentValue, |
| float | previousValue ) |
Implemented in SCR_ResourceContainerQueue< Class ResourceInteractorType >.
| float SCR_ResourceContainerQueueBase.UpdateContainerResourceValue | ( | float | currentValue, |
| float | previousValue ) |
Implemented in SCR_ResourceContainerQueue< Class ResourceInteractorType >.
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |