Arma Reforger Script API
|
Public Member Functions | |
override int | GetGridUpdateId () |
float | GetResourceGridRange () |
float | GetAggregatedResourceValue () |
float | GetAggregatedMaxResourceValue () |
int | GetContainerCount () |
vector | GetLastPosition () |
EResourceType | GetResourceType () |
SCR_ResourceContainerQueueBase | GetContainerQueue () |
ScriptInvoker< SCR_ResourceInteractor, float > | GetOnResourcesChanged () |
ScriptInvoker< SCR_ResourceInteractor, float > | GetOnMaxResourcesChanged () |
EResourceGeneratorID | GetIdentifier () |
override bool | IsGridUpdateIdGreaterThan (int gridUpdateId) |
bool | IsAllowed (notnull SCR_ResourceContainer container) |
bool | IsAllowed (notnull IEntity entity, EResourceType resourceType) |
bool | CanInteractWith (notnull SCR_ResourceContainer container) |
int | FindContainer (notnull SCR_ResourceContainer container) |
override void | SetGridUpdateId (int gridUpdateId) |
void | UpdateLastPosition () |
Updates the last known position of the interactor. | |
bool | RegisterContainer (notnull SCR_ResourceContainer container) |
bool | RegisterContainerForced (notnull SCR_ResourceContainer container) |
bool | UnregisterContainer (int containerIndex) |
bool | UnregisterContainer (notnull SCR_ResourceContainer container) |
void | Replicate () |
void | ReplicateEx () |
void | UpdateContainerResourceValue (SCR_ResourceContainer container, float previousValue) |
void | UpdateContainerMaxResourceValue (SCR_ResourceContainer container, float previousValue) |
void | OnResourceGridUpdated (notnull SCR_ResourceGrid grid) |
Gets called when the interactor container queue is updated by the resource grid. | |
void | OnResourcesChanged (float previousValue) |
void | OnMaxResourcesChanged (float previousValue) |
void | OnContainerRegistered (notnull SCR_ResourceContainer container) |
void | OnContainerUnregistered (notnull SCR_ResourceContainer container) |
void | Initialize (notnull IEntity owner) |
override void | Clear () |
Public Member Functions inherited from SCR_ResourceActor | |
Color | GetDebugColor () |
int | GetGridUpdateId () |
vector | GetOwnerOrigin () |
string | GetDebugName () |
int | GetDebugNameHash () |
SCR_ResourceComponent | GetComponent () |
IEntity | GetOwner () |
EResourceRights | GetResourceRight () |
bool | ShouldUpdate () |
bool | IsIsolated () |
bool | IsGridUpdateIdGreaterThan (int gridUpdateId) |
void | SetResourceRights (EResourceRights rights) |
void | SetGridUpdateId (int gridUpdateId) |
void | Update (float timeslice) |
void | UpdateInner (float timeslice) |
void | Clear () |
void | ~SCR_ResourceActor () |
Protected Attributes | |
ref ScriptInvoker< SCR_ResourceInteractor, float > | m_OnResourcesChangedInvoker |
ref ScriptInvoker< SCR_ResourceInteractor, float > | m_OnMaxResourcesChangedInvoker |
int | m_iGridUpdateId = int.MIN |
float | m_fAggregatedResourceValue = -1.0 |
HOTFIX: Until replication issues are resolved. | |
float | m_fAggregatedMaxResourceValue = -1.0 |
vector | m_LastPosition = vector.Zero |
Protected Attributes inherited from SCR_ResourceActor | |
EResourceRights | m_eResourceRights |
EResourceType | m_eResourceType |
SCR_ResourceComponent | m_ResourceComponent |
IEntity | m_Owner |
Additional Inherited Members | |
Public Attributes inherited from SCR_ResourceActor | |
string | m_sDebugName |
Static Public Attributes inherited from SCR_ResourceActor | |
static const float | RESOURCES_LOWER_LIMIT = 0.0 |
Static Protected Attributes inherited from SCR_ResourceActor | |
static const float | UPDATE_PERIOD = 10.0 / 60.0 |
static const int | CODEC_GENERATOR_PACKET_BYTESIZE = 32 |
bool SCR_ResourceInteractor.CanInteractWith | ( | notnull SCR_ResourceContainer | container | ) |
[in] | container |
Implemented in SCR_ResourceConsumerServicePoint, SCR_ResourceGeneratorServicePoint, SCR_ResourceConsumer, and SCR_ResourceGenerator.
override void SCR_ResourceInteractor.Clear | ( | ) |
Implements SCR_ResourceActor.
Implemented in SCR_ResourceConsumerServicePoint, SCR_ResourceGeneratorServicePoint, SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
int SCR_ResourceInteractor.FindContainer | ( | notnull SCR_ResourceContainer | container | ) |
[in] | container |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
float SCR_ResourceInteractor.GetAggregatedMaxResourceValue | ( | ) |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
float SCR_ResourceInteractor.GetAggregatedResourceValue | ( | ) |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
int SCR_ResourceInteractor.GetContainerCount | ( | ) |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
SCR_ResourceContainerQueueBase SCR_ResourceInteractor.GetContainerQueue | ( | ) |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
override int SCR_ResourceInteractor.GetGridUpdateId | ( | ) |
Implements SCR_ResourceActor.
EResourceGeneratorID SCR_ResourceInteractor.GetIdentifier | ( | ) |
Implemented in SCR_ResourceConsumer, and SCR_ResourceGenerator.
vector SCR_ResourceInteractor.GetLastPosition | ( | ) |
ScriptInvoker< SCR_ResourceInteractor, float > SCR_ResourceInteractor.GetOnMaxResourcesChanged | ( | ) |
ScriptInvoker< SCR_ResourceInteractor, float > SCR_ResourceInteractor.GetOnResourcesChanged | ( | ) |
float SCR_ResourceInteractor.GetResourceGridRange | ( | ) |
Implemented in SCR_ResourceConsumer, and SCR_ResourceGenerator.
EResourceType SCR_ResourceInteractor.GetResourceType | ( | ) |
void SCR_ResourceInteractor.Initialize | ( | notnull IEntity | owner | ) |
[in] | owner |
Implemented in SCR_ResourceConsumerServicePoint, SCR_ResourceGeneratorServicePoint, SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
bool SCR_ResourceInteractor.IsAllowed | ( | notnull IEntity | entity, |
EResourceType | resourceType | ||
) |
[in] | entity | |
[in] | resourceType |
bool SCR_ResourceInteractor.IsAllowed | ( | notnull SCR_ResourceContainer | container | ) |
override bool SCR_ResourceInteractor.IsGridUpdateIdGreaterThan | ( | int | gridUpdateId | ) |
void SCR_ResourceInteractor.OnContainerRegistered | ( | notnull SCR_ResourceContainer | container | ) |
[in] | container |
Implemented in SCR_ResourceConsumerMilitaryBase, SCR_ResourceGeneratorMilitaryBase, and SCR_ResourceEncapsulator.
void SCR_ResourceInteractor.OnContainerUnregistered | ( | notnull SCR_ResourceContainer | container | ) |
[in] | container |
Implemented in SCR_ResourceConsumerMilitaryBase, SCR_ResourceGeneratorMilitaryBase, and SCR_ResourceEncapsulator.
void SCR_ResourceInteractor.OnMaxResourcesChanged | ( | float | previousValue | ) |
[in] | previousValue |
Implemented in SCR_ResourceEncapsulator.
void SCR_ResourceInteractor.OnResourceGridUpdated | ( | notnull SCR_ResourceGrid | grid | ) |
Gets called when the interactor container queue is updated by the resource grid.
[in] | grid | The resource grid that cause the update. |
Implemented in SCR_ResourceConsumerServicePoint, and SCR_ResourceGeneratorServicePoint.
void SCR_ResourceInteractor.OnResourcesChanged | ( | float | previousValue | ) |
[in] | previousValue |
Implemented in SCR_ResourceEncapsulator.
bool SCR_ResourceInteractor.RegisterContainer | ( | notnull SCR_ResourceContainer | container | ) |
[in] | container |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
bool SCR_ResourceInteractor.RegisterContainerForced | ( | notnull SCR_ResourceContainer | container | ) |
[in] | container |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
void SCR_ResourceInteractor.Replicate | ( | ) |
void SCR_ResourceInteractor.ReplicateEx | ( | ) |
override void SCR_ResourceInteractor.SetGridUpdateId | ( | int | gridUpdateId | ) |
[in] | gridUpdateId |
Implements SCR_ResourceActor.
bool SCR_ResourceInteractor.UnregisterContainer | ( | int | containerIndex | ) |
[in] | containerIndex |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
bool SCR_ResourceInteractor.UnregisterContainer | ( | notnull SCR_ResourceContainer | container | ) |
[in] | container |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
void SCR_ResourceInteractor.UpdateContainerMaxResourceValue | ( | SCR_ResourceContainer | container, |
float | previousValue | ||
) |
[in] | container | |
[in] | previousValue |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
void SCR_ResourceInteractor.UpdateContainerResourceValue | ( | SCR_ResourceContainer | container, |
float | previousValue | ||
) |
[in] | container | |
[in] | previousValue |
Implemented in SCR_ResourceConsumer, SCR_ResourceEncapsulator, and SCR_ResourceGenerator.
void SCR_ResourceInteractor.UpdateLastPosition | ( | ) |
Updates the last known position of the interactor.
|
protected |
|
protected |
HOTFIX: Until replication issues are resolved.
|
protected |
|
protected |
|
protected |
|
protected |