Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ResourceGeneratorActionBase Interface Reference
Inheritance diagram for SCR_ResourceGeneratorActionBase:
SCR_ResourceGeneratorActionDropContainers SCR_ResourceGeneratorActionStore

Public Member Functions

bool HasConstrainedGeneration ()
 Returns true if the action has constrainted generation of resources.
 
float ComputeGeneratedResources (notnull SCR_ResourceGenerator generator, float resourceValue)
 Returns the amount of possible generated resources.
 
void PerformAction (notnull SCR_ResourceGenerator generator, inout float resourceValue)
 Performs the action for generation of resources.
 

Member Function Documentation

◆ ComputeGeneratedResources()

float SCR_ResourceGeneratorActionBase.ComputeGeneratedResources ( notnull SCR_ResourceGenerator generator,
float resourceValue )

Returns the amount of possible generated resources.

Parameters
[in]generatorThe generator that the action is being computed on.
[in]resourceValueThe resource value that is to be generated.

Implemented in SCR_ResourceGeneratorActionDropContainers, and SCR_ResourceGeneratorActionStore.

◆ HasConstrainedGeneration()

bool SCR_ResourceGeneratorActionBase.HasConstrainedGeneration ( )

Returns true if the action has constrainted generation of resources.

Implemented in SCR_ResourceGeneratorActionDropContainers.

◆ PerformAction()

void SCR_ResourceGeneratorActionBase.PerformAction ( notnull SCR_ResourceGenerator generator,
inout float resourceValue )

Performs the action for generation of resources.

Override this method in order to decide how to generate resources.

Parameters
[in]generatorThe generator that the action is being performed on.
[in,out]resourceValueThe resource value that is to be used with the action.

Implemented in SCR_ResourceGeneratorActionDropContainers, and SCR_ResourceGeneratorActionStore.


The documentation for this interface was generated from the following file: