Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ResourceComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_ResourceComponentClass

Typedefs

typedef func SCR_Resources_OnResourceEnabledChanged

Enumerations

enum  EResourceDebugVisualizationFlags

Functions

enum EResourceDebugVisualizationFlags SCR_Resources_OnResourceEnabledChanged (SCR_ResourceComponent resourceComponent, array< EResourceType > disabledResourceTypes)
ScriptInvoker TEMP_GetOnInteractorReplicated ()
 HOTFIX: Until replication issues are resolved.
void TEMP_OnInteractorReplicated ()
 HOTFIX: Until replication issues are resolved.
bool IsResourceTypeEnabled (EResourceType resourceType=EResourceType.SUPPLIES)
int GetDisabledResourceTypes (inout notnull array< EResourceType > disabledResourceTypes)
bool CanResourceTypeEnabledBeChanged (EResourceType resourceType=EResourceType.SUPPLIES)
bool CanBeUsedByCharacter (notnull SCR_ChimeraCharacter character)
void SetResourceTypeEnabled (bool enable, EResourceType resourceType=EResourceType.SUPPLIES)
void OnResourceTypeEnabledChanged ()
ScriptInvokerBase< SCR_Resources_OnResourceEnabledChangedGetOnResourceTypeEnabledChanged ()
int GetGridContainersBoundsMins ()
int GetGridContainersBoundsMaxs ()
void GetGridContainersBounds (out int mins, out int maxs)
void GetGridContainersBoundingBox (out vector mins, out vector maxs)
void GetGridContainersWorldBoundingBox (out vector mins, out vector maxs)
RplComponent GetReplicationComponent ()
FactionAffiliationComponent GetFactionAffiliationComponent ()
SCR_ResourceEncapsulator GetEncapsulator (EResourceType resourceType)
bool GetEncapsulator (EResourceType resourceType, out SCR_ResourceEncapsulator encapsulator)
bool GetNextEncapsulatorCandidate (inout int position, inout int higherLimitPosition, inout SCR_ResourceEncapsulator encapsulator, EResourceType resourceType)
array< SCR_ResourceEncapsulatorGetEncapsulators ()
SCR_ResourceContainer GetContainer (EResourceType resourceType)
bool GetContainer (EResourceType resourceType, out SCR_ResourceContainer container)
bool GetNextContainerCandidate (inout int position, inout int higherLimitPosition, inout SCR_ResourceContainer container, EResourceType resourceType)
array< SCR_ResourceContainerGetContainers ()
SCR_ResourceConsumer GetConsumer (EResourceGeneratorID identifier, EResourceType resourceType)
bool GetConsumer (EResourceGeneratorID identifier, EResourceType resourceType, inout SCR_ResourceConsumer consumer)
bool GetNextConsumerCandidate (inout int position, inout int higherLimitPosition, inout SCR_ResourceConsumer consumer, EResourceGeneratorID identifier, EResourceType resourceType)
array< SCR_ResourceConsumer > GetConsumers ()
SCR_ResourceGenerator GetGenerator (EResourceGeneratorID identifier, EResourceType resourceType)
bool GetGenerator (EResourceGeneratorID identifier, EResourceType resourceType, out SCR_ResourceGenerator generator)
bool GetNextGeneratorCandidate (inout int position, inout int higherLimitPosition, inout SCR_ResourceGenerator generator, EResourceGeneratorID identifier, EResourceType resourceType)
array< SCR_ResourceGeneratorGetGenerators ()
int GetGridUpdateId ()
vector GetLastPosition ()
bool HasParent ()
Color GetDebugColor ()
bool IsGridUpdateIdGreaterThan (int gridUpdateId)
bool IsDebugVisualizationEnabled ()
bool IsVisible ()
bool IsOwnerActive ()
bool ShouldConsumersBeReplicated ()
bool ShouldGeneratorsBeReplicated ()
void SetGridUpdateId (int gridUpdateId)
void SetIsVisible (bool state)
void SetGridContainersBoundsMins (int mins)
void SetGridContainersBoundsMaxs (int maxs)
void SetGridContainersBounds (int mins, int maxs)
void UpdateLastPosition ()
 Updates the serial number for the current processing call of the resource grid onto this component.
void FlagForProcessing ()
void UnflagForProcessing ()
void DeleteConsumers ()
void DeleteGenerators ()
void DeleteQueryInteractors ()
void OnPostInit (IEntity owner)
 Editable Mine.
void Initialize (notnull IEntity owner)
void OnChildAdded (IEntity parent, IEntity child)
void EOnInit (IEntity owner)
void DebugDraw ()
void Replicate ()
void ReplicateEx ()
void OnVisibilityChanged ()
void OnAddedToParent (IEntity child, IEntity parent)
void OnAddedToParentEx (IEntity child, IEntity parent)
void OnRemovedFromParent (IEntity child, IEntity parent)
void OnVehiclePhysicsActive (IEntity owner, bool activeState)
void OnDelete (IEntity owner)

Variables

 CONSUMER = 1 << 0
 CONTAINER = 1 << 1
 GENERATOR = 1 << 2
 ENCAPSULATOR = 1 << 3
SCR_ResourceComponentClass UPDATE_DISTANCE_TRESHOLD = 2.5
const float UPDATE_DISTANCE_TRESHOLD_SQUARE = UPDATE_DISTANCE_TRESHOLD * UPDATE_DISTANCE_TRESHOLD
const float UPDATE_PERIOD = 10.0 / 60.0
bool m_bIsNetDirty
int m_iGridUpdateId = int.MIN
int m_iGridContainersBoundsMins = 0xFFFFFFFF
int m_iGridContainersBoundsMaxs = 0xFFFFFFFF
vector m_vGridContainersBoundingVolumeMins
vector m_vGridContainersBoundingVolumeMaxs
bool m_bIsFlaggedForProcessing
ref array< ref SCR_ResourceEncapsulatorm_aEncapsulators
 Refer to SCR_ResourceEncapsulator for documentation.
ref array< ref SCR_ResourceConsumer > m_aConsumers
 Refer to SCR_ResourceConsumer for documentation.
ref array< ref SCR_ResourceGeneratorm_aGenerators
 Refer to SCR_ResourceGenerator for documentation.
ref array< EResourceTypem_aDisabledResourceTypes
ref array< EResourceTypem_aDisallowChangingEnableResource
ref ScriptInvoker m_TEMP_OnInteractorReplicated
 HOTFIX: Until replication issues are resolved.
ref ScriptInvokerBase< SCR_Resources_OnResourceEnabledChangedm_OnResourceTypeEnabledChanged
bool m_bEnableDebugVisualization
 Setting for enabling the debugging visualization of the container and/or consumer.
EResourceDebugVisualizationFlags m_eDebugVisualizationFlags
 Flags for enabling the debugging visualization.
ref Color m_DebugColor
 Setting for the base color for the debugging visualization of the container and/or consumer.
bool m_bIsVisible = true
ref array< ref SCR_ResourceContainerm_aContainerInstances = {}
RplComponent m_ReplicationComponent
 Replication component attached to the owner entity.
FactionAffiliationComponent m_FactionAffiliationComponent
vector m_LastPosition = vector.Zero
bool m_bHasParent
bool m_bIsOwnerActive
bool m_bIsInitialized
bool m_bIsAddedToParentBuffered

Typedef Documentation

◆ SCR_Resources_OnResourceEnabledChanged

Enumeration Type Documentation

◆ EResourceDebugVisualizationFlags

Function Documentation

◆ CanBeUsedByCharacter()

bool CanBeUsedByCharacter ( notnull SCR_ChimeraCharacter character)
protected

Checks if provided character should be able to use this resource component

Parameters
[in]character
Returns
true if provided character should be able to use this resource component, otherwise false

Definition at line 168 of file SCR_ResourceComponent.c.

◆ CanResourceTypeEnabledBeChanged()

bool CanResourceTypeEnabledBeChanged ( EResourceType resourceType = EResourceType.SUPPLIES)
protected
Parameters
[in]resourceTypeType to check
Returns
If supplies are enabled or not (Only checked if global supplies are enabled, otherwise it always returns false)

Definition at line 159 of file SCR_ResourceComponent.c.

◆ DebugDraw()

void DebugDraw ( )
protected

Processes and presents the debugging visualization for the consumer and/or container. Generic/Shared visualization should be processed explicitely here and consumer specific visualiation should be processed through SCR_ResourceConsumer::DebugDraw(), similarly for the container with SCR_ResourceContainer::DebugDraw(). A white arrow is drawn explicitely from here with the intent of providing a visual cue of the extents of the highest range, that is the storage range of the container or the resource range of the consumer. Whatever is the highest is the height that will be selected for this arrow.

TODO: Cache the height value and only change it on a event basis.

Processes and presents the debugging visualization for the encapsulator.

Draws the arrow for the visual cue regarding the maximum range.

Definition at line 1349 of file SCR_ResourceComponent.c.

◆ DeleteConsumers()

void DeleteConsumers ( )
protected

Definition at line 986 of file SCR_ResourceComponent.c.

◆ DeleteGenerators()

void DeleteGenerators ( )
protected

Definition at line 996 of file SCR_ResourceComponent.c.

◆ DeleteQueryInteractors()

void DeleteQueryInteractors ( )
protected

Definition at line 1006 of file SCR_ResourceComponent.c.

◆ FlagForProcessing()

void FlagForProcessing ( )
protected

Definition at line 962 of file SCR_ResourceComponent.c.

◆ GetConsumer() [1/2]

SCR_ResourceConsumer GetConsumer ( EResourceGeneratorID identifier,
EResourceType resourceType )
protected
Parameters
[in]identifier
[in]resourceType
Returns
The first consumer instance of a specified resource type, or null if none.

Definition at line 593 of file SCR_ResourceComponent.c.

◆ GetConsumer() [2/2]

bool GetConsumer ( EResourceGeneratorID identifier,
EResourceType resourceType,
inout SCR_ResourceConsumer consumer )
protected
Parameters
[in]identifier
[in]resourceType
[in,out]consumerThe first consumer instance of a specified resource type, or null if none.
Returns
If a consumer instance of a specified resource type has been found.

Definition at line 626 of file SCR_ResourceComponent.c.

◆ GetConsumers()

array< SCR_ResourceConsumer > GetConsumers ( )
protected
Returns
The consumer instances, or null if none.

Definition at line 696 of file SCR_ResourceComponent.c.

◆ GetContainer() [1/2]

SCR_ResourceContainer GetContainer ( EResourceType resourceType)
protected
Parameters
[in]resourceType
Returns
The first container instance of a specified resource type, or null if none.

Definition at line 478 of file SCR_ResourceComponent.c.

◆ GetContainer() [2/2]

bool GetContainer ( EResourceType resourceType,
out SCR_ResourceContainer container )
protected
Parameters
[in]resourceType
[out]container
Returns
If a container instance of a specified resource type has been found.

Definition at line 510 of file SCR_ResourceComponent.c.

◆ GetContainers()

array< SCR_ResourceContainer > GetContainers ( )
protected
Returns
The container instances, or null if none.

Definition at line 570 of file SCR_ResourceComponent.c.

◆ GetDebugColor()

Color GetDebugColor ( )
protected
Returns
The debug base color for the debugging visualization of the container and/or consumer.

Definition at line 863 of file SCR_ResourceComponent.c.

◆ GetDisabledResourceTypes()

int GetDisabledResourceTypes ( inout notnull array< EResourceType > disabledResourceTypes)
protected
Parameters
[in]disabledResourceTypesList of disabled resources
Returns
Count of all disabled resource types

Definition at line 150 of file SCR_ResourceComponent.c.

◆ GetEncapsulator() [1/2]

SCR_ResourceEncapsulator GetEncapsulator ( EResourceType resourceType)
protected
Parameters
[in]resourceType
Returns
The first encapsulator instance of a specified resource type, or null if none.

Definition at line 364 of file SCR_ResourceComponent.c.

◆ GetEncapsulator() [2/2]

bool GetEncapsulator ( EResourceType resourceType,
out SCR_ResourceEncapsulator encapsulator )
protected
Parameters
[in]resourceType
[out]encapsulatorThe first encapsulator instance of a specified resource type, or null if none.
Returns
If a encapsulator instance of a specified resource type has been found.

Definition at line 395 of file SCR_ResourceComponent.c.

◆ GetEncapsulators()

array< SCR_ResourceEncapsulator > GetEncapsulators ( )
protected
Returns
The encapsulator instances, or null if none.

Definition at line 452 of file SCR_ResourceComponent.c.

◆ GetFactionAffiliationComponent()

FactionAffiliationComponent GetFactionAffiliationComponent ( )
protected
Returns

Definition at line 356 of file SCR_ResourceComponent.c.

◆ GetGenerator() [1/2]

SCR_ResourceGenerator GetGenerator ( EResourceGeneratorID identifier,
EResourceType resourceType )
protected
Parameters
[in]identifier
[in]resourceType
Returns
The first generator instance of a specified resource type, or null if none.

Definition at line 717 of file SCR_ResourceComponent.c.

◆ GetGenerator() [2/2]

bool GetGenerator ( EResourceGeneratorID identifier,
EResourceType resourceType,
out SCR_ResourceGenerator generator )
protected
Parameters
[in]identifier
[in]resourceType
[out]generatorThe first generator instance of a specified resource type, or null if none.
Returns
If a generator instance of a specified resource type has been found.

Definition at line 749 of file SCR_ResourceComponent.c.

◆ GetGenerators()

array< SCR_ResourceGenerator > GetGenerators ( )
protected
Returns
The generator instances, or null if none.

Definition at line 821 of file SCR_ResourceComponent.c.

◆ GetGridContainersBoundingBox()

void GetGridContainersBoundingBox ( out vector mins,
out vector maxs )
protected
Parameters
[out]mins
[out]maxs

Definition at line 331 of file SCR_ResourceComponent.c.

◆ GetGridContainersBounds()

void GetGridContainersBounds ( out int mins,
out int maxs )
protected
Parameters
[out]mins
[out]maxs

Definition at line 322 of file SCR_ResourceComponent.c.

◆ GetGridContainersBoundsMaxs()

int GetGridContainersBoundsMaxs ( )
protected
Returns

Definition at line 314 of file SCR_ResourceComponent.c.

◆ GetGridContainersBoundsMins()

int GetGridContainersBoundsMins ( )
protected
Returns

Definition at line 307 of file SCR_ResourceComponent.c.

◆ GetGridContainersWorldBoundingBox()

void GetGridContainersWorldBoundingBox ( out vector mins,
out vector maxs )
protected
Parameters
[out]mins
[out]maxs

Definition at line 340 of file SCR_ResourceComponent.c.

◆ GetGridUpdateId()

int GetGridUpdateId ( )
protected
Returns

Definition at line 842 of file SCR_ResourceComponent.c.

◆ GetLastPosition()

vector GetLastPosition ( )
protected
Returns
The last processed world position of the component.

Definition at line 849 of file SCR_ResourceComponent.c.

◆ GetNextConsumerCandidate()

bool GetNextConsumerCandidate ( inout int position,
inout int higherLimitPosition,
inout SCR_ResourceConsumer consumer,
EResourceGeneratorID identifier,
EResourceType resourceType )
protected

Definition at line 655 of file SCR_ResourceComponent.c.

◆ GetNextContainerCandidate()

bool GetNextContainerCandidate ( inout int position,
inout int higherLimitPosition,
inout SCR_ResourceContainer container,
EResourceType resourceType )
protected

Definition at line 538 of file SCR_ResourceComponent.c.

◆ GetNextEncapsulatorCandidate()

bool GetNextEncapsulatorCandidate ( inout int position,
inout int higherLimitPosition,
inout SCR_ResourceEncapsulator encapsulator,
EResourceType resourceType )
protected

Definition at line 424 of file SCR_ResourceComponent.c.

◆ GetNextGeneratorCandidate()

bool GetNextGeneratorCandidate ( inout int position,
inout int higherLimitPosition,
inout SCR_ResourceGenerator generator,
EResourceGeneratorID identifier,
EResourceType resourceType )
protected

Definition at line 778 of file SCR_ResourceComponent.c.

◆ GetOnResourceTypeEnabledChanged()

ScriptInvokerBase< SCR_Resources_OnResourceEnabledChanged > GetOnResourceTypeEnabledChanged ( )
protected
Returns
ScriptInvoker OnSupplies Enabled

Definition at line 233 of file SCR_ResourceComponent.c.

◆ GetReplicationComponent()

RplComponent GetReplicationComponent ( )
protected
Returns

Definition at line 349 of file SCR_ResourceComponent.c.

◆ HasParent()

bool HasParent ( )
protected
Returns
true if the owner has a parent entity, false otherwise.

Definition at line 856 of file SCR_ResourceComponent.c.

◆ Initialize()

void Initialize ( notnull IEntity owner)
protected
Parameters
[in]owner

Definition at line 1045 of file SCR_ResourceComponent.c.

◆ IsDebugVisualizationEnabled()

bool IsDebugVisualizationEnabled ( )
protected
Returns
true if the debugging visualization of the container and/or consumer is enabled, false oherwise.

Definition at line 878 of file SCR_ResourceComponent.c.

◆ IsGridUpdateIdGreaterThan()

bool IsGridUpdateIdGreaterThan ( int gridUpdateId)
protected
Parameters
[in]gridUpdateId
Returns

Definition at line 871 of file SCR_ResourceComponent.c.

◆ IsOwnerActive()

bool IsOwnerActive ( )
protected
Returns

Definition at line 892 of file SCR_ResourceComponent.c.

◆ IsResourceTypeEnabled()

bool IsResourceTypeEnabled ( EResourceType resourceType = EResourceType.SUPPLIES)
protected
Parameters
[in]resourceTypeType to check
Returns
If supplies are enabled or not (Only checked if global supplies are enabled, otherwise it always returns false)

Definition at line 139 of file SCR_ResourceComponent.c.

◆ IsVisible()

bool IsVisible ( )
protected
Returns

Definition at line 885 of file SCR_ResourceComponent.c.

◆ OnAddedToParent()

void OnAddedToParent ( IEntity child,
IEntity parent )
protected

Definition at line 1505 of file SCR_ResourceComponent.c.

◆ OnAddedToParentEx()

void OnAddedToParentEx ( IEntity child,
IEntity parent )
protected

Definition at line 1517 of file SCR_ResourceComponent.c.

◆ OnChildAdded()

void OnChildAdded ( IEntity parent,
IEntity child )
protected

Called on parent entity when child entity is added into hierarchy

Parameters
[in]parent
[in]child

Definition at line 1289 of file SCR_ResourceComponent.c.

◆ OnDelete()

void OnDelete ( IEntity owner)
protected

Definition at line 1579 of file SCR_ResourceComponent.c.

◆ OnRemovedFromParent()

void OnRemovedFromParent ( IEntity child,
IEntity parent )
protected

Definition at line 1548 of file SCR_ResourceComponent.c.

◆ OnResourceTypeEnabledChanged()

void OnResourceTypeEnabledChanged ( )
protected

Definition at line 225 of file SCR_ResourceComponent.c.

◆ OnVehiclePhysicsActive()

void OnVehiclePhysicsActive ( IEntity owner,
bool activeState )
protected
Parameters
[in]owner
[in]activeState

Definition at line 1567 of file SCR_ResourceComponent.c.

◆ OnVisibilityChanged()

void OnVisibilityChanged ( )
protected

Definition at line 1488 of file SCR_ResourceComponent.c.

◆ Replicate()

void Replicate ( )
protected

Definition at line 1414 of file SCR_ResourceComponent.c.

◆ ReplicateEx()

void ReplicateEx ( )
protected

Utility method used to replicate the component state. Warning: This is important for the SCR_ResourceConsumer and SCR_ResourceContainer classes as it is used to cause the component to replicate, so do not add extra functionality here unless it is necessary for the replication functionality of both the SCR_ResourceConsumer and SCR_ResourceContainer classes.

Definition at line 1427 of file SCR_ResourceComponent.c.

◆ SCR_Resources_OnResourceEnabledChanged()

enum EResourceDebugVisualizationFlags SCR_Resources_OnResourceEnabledChanged ( SCR_ResourceComponent resourceComponent,
array< EResourceType > disabledResourceTypes )

◆ SetGridContainersBounds()

void SetGridContainersBounds ( int mins,
int maxs )
protected
Parameters
[in]mins
[in]maxs

Definition at line 947 of file SCR_ResourceComponent.c.

◆ SetGridContainersBoundsMaxs()

void SetGridContainersBoundsMaxs ( int maxs)
protected
Parameters
[in]maxs

Definition at line 939 of file SCR_ResourceComponent.c.

◆ SetGridContainersBoundsMins()

void SetGridContainersBoundsMins ( int mins)
protected
Parameters
[in]mins

Definition at line 932 of file SCR_ResourceComponent.c.

◆ SetGridUpdateId()

void SetGridUpdateId ( int gridUpdateId)
protected
Parameters
[in]gridUpdateId

Definition at line 911 of file SCR_ResourceComponent.c.

◆ SetIsVisible()

void SetIsVisible ( bool state)
protected
Parameters
[in]state

Definition at line 921 of file SCR_ResourceComponent.c.

◆ SetResourceTypeEnabled()

void SetResourceTypeEnabled ( bool enable,
EResourceType resourceType = EResourceType.SUPPLIES )
protected

Set Resource Type enabled or disabled

Parameters
[in]enableSet true to enable resource type, set false to disable
[in]resourceTypeResource type to enable/disable

Definition at line 189 of file SCR_ResourceComponent.c.

◆ ShouldConsumersBeReplicated()

bool ShouldConsumersBeReplicated ( )
protected

Definition at line 898 of file SCR_ResourceComponent.c.

◆ ShouldGeneratorsBeReplicated()

bool ShouldGeneratorsBeReplicated ( )
protected

Definition at line 904 of file SCR_ResourceComponent.c.

◆ TEMP_GetOnInteractorReplicated()

ScriptInvoker TEMP_GetOnInteractorReplicated ( )
protected

HOTFIX: Until replication issues are resolved.

Definition at line 86 of file SCR_ResourceComponent.c.

◆ TEMP_OnInteractorReplicated()

void TEMP_OnInteractorReplicated ( )
protected

HOTFIX: Until replication issues are resolved.

Definition at line 96 of file SCR_ResourceComponent.c.

◆ UnflagForProcessing()

void UnflagForProcessing ( )
protected

Definition at line 974 of file SCR_ResourceComponent.c.

◆ UpdateLastPosition()

void UpdateLastPosition ( )
protected

Updates the serial number for the current processing call of the resource grid onto this component.

Definition at line 955 of file SCR_ResourceComponent.c.

Variable Documentation

◆ CONSUMER

CONSUMER = 1 << 0

Definition at line 0 of file SCR_ResourceComponent.c.

◆ CONTAINER

CONTAINER = 1 << 1

Definition at line 1 of file SCR_ResourceComponent.c.

◆ ENCAPSULATOR

ENCAPSULATOR = 1 << 3

Definition at line 3 of file SCR_ResourceComponent.c.

◆ GENERATOR

GENERATOR = 1 << 2

Definition at line 2 of file SCR_ResourceComponent.c.

◆ m_aConsumers

ref array<ref SCR_ResourceConsumer> m_aConsumers
protected

Refer to SCR_ResourceConsumer for documentation.

Definition at line 64 of file SCR_ResourceComponent.c.

◆ m_aContainerInstances

ref array<ref SCR_ResourceContainer> m_aContainerInstances = {}
protected

Defined/Configured through SCR_ResourceComponentClass::m_Container. Refer to SCR_ResourceContainer for documentation.

Definition at line 120 of file SCR_ResourceComponent.c.

◆ m_aDisabledResourceTypes

ref array<EResourceType> m_aDisabledResourceTypes
protected

Definition at line 72 of file SCR_ResourceComponent.c.

◆ m_aDisallowChangingEnableResource

ref array<EResourceType> m_aDisallowChangingEnableResource
protected

Definition at line 76 of file SCR_ResourceComponent.c.

◆ m_aEncapsulators

ref array<ref SCR_ResourceEncapsulator> m_aEncapsulators
protected

Refer to SCR_ResourceEncapsulator for documentation.

Definition at line 60 of file SCR_ResourceComponent.c.

◆ m_aGenerators

ref array<ref SCR_ResourceGenerator> m_aGenerators
protected

Refer to SCR_ResourceGenerator for documentation.

Definition at line 68 of file SCR_ResourceComponent.c.

◆ m_bEnableDebugVisualization

bool m_bEnableDebugVisualization
protected

Setting for enabling the debugging visualization of the container and/or consumer.

Definition at line 105 of file SCR_ResourceComponent.c.

◆ m_bHasParent

bool m_bHasParent
protected

Definition at line 127 of file SCR_ResourceComponent.c.

◆ m_bIsAddedToParentBuffered

bool m_bIsAddedToParentBuffered
protected

Definition at line 134 of file SCR_ResourceComponent.c.

◆ m_bIsFlaggedForProcessing

bool m_bIsFlaggedForProcessing
protected

Definition at line 56 of file SCR_ResourceComponent.c.

◆ m_bIsInitialized

bool m_bIsInitialized
protected

Definition at line 131 of file SCR_ResourceComponent.c.

◆ m_bIsNetDirty

bool m_bIsNetDirty
protected

Definition at line 48 of file SCR_ResourceComponent.c.

◆ m_bIsOwnerActive

bool m_bIsOwnerActive
protected

Definition at line 128 of file SCR_ResourceComponent.c.

◆ m_bIsVisible

bool m_bIsVisible = true
protected

Definition at line 116 of file SCR_ResourceComponent.c.

◆ m_DebugColor

ref Color m_DebugColor
protected

Setting for the base color for the debugging visualization of the container and/or consumer.

Definition at line 113 of file SCR_ResourceComponent.c.

◆ m_eDebugVisualizationFlags

EResourceDebugVisualizationFlags m_eDebugVisualizationFlags
protected

Flags for enabling the debugging visualization.

Definition at line 109 of file SCR_ResourceComponent.c.

◆ m_FactionAffiliationComponent

FactionAffiliationComponent m_FactionAffiliationComponent
protected

Definition at line 124 of file SCR_ResourceComponent.c.

◆ m_iGridContainersBoundsMaxs

int m_iGridContainersBoundsMaxs = 0xFFFFFFFF
protected

Definition at line 52 of file SCR_ResourceComponent.c.

◆ m_iGridContainersBoundsMins

int m_iGridContainersBoundsMins = 0xFFFFFFFF
protected

Definition at line 51 of file SCR_ResourceComponent.c.

◆ m_iGridUpdateId

int m_iGridUpdateId = int.MIN
protected

Definition at line 49 of file SCR_ResourceComponent.c.

◆ m_LastPosition

vector m_LastPosition = vector.Zero
protected

Definition at line 126 of file SCR_ResourceComponent.c.

◆ m_OnResourceTypeEnabledChanged

ref ScriptInvokerBase<SCR_Resources_OnResourceEnabledChanged> m_OnResourceTypeEnabledChanged
protected

Definition at line 81 of file SCR_ResourceComponent.c.

◆ m_ReplicationComponent

RplComponent m_ReplicationComponent
protected

Replication component attached to the owner entity.

Definition at line 123 of file SCR_ResourceComponent.c.

◆ m_TEMP_OnInteractorReplicated

ref ScriptInvoker m_TEMP_OnInteractorReplicated
protected

HOTFIX: Until replication issues are resolved.

Definition at line 79 of file SCR_ResourceComponent.c.

◆ m_vGridContainersBoundingVolumeMaxs

vector m_vGridContainersBoundingVolumeMaxs
protected

Definition at line 54 of file SCR_ResourceComponent.c.

◆ m_vGridContainersBoundingVolumeMins

vector m_vGridContainersBoundingVolumeMins
protected

Definition at line 53 of file SCR_ResourceComponent.c.

◆ UPDATE_DISTANCE_TRESHOLD

SCR_ResourceComponentClass UPDATE_DISTANCE_TRESHOLD = 2.5

Component used to activate the sandbox resources functionality on an entity. This component can enable the functionality for both sandbox container and sandbox consumer in an individual manner. The sandbox resources functionality does not require a manager so just the presence of containers being registered into a consumer's queue is enough for it to perform its functionality. The replication component is a requirement for the component to work properly.

◆ UPDATE_DISTANCE_TRESHOLD_SQUARE

const float UPDATE_DISTANCE_TRESHOLD_SQUARE = UPDATE_DISTANCE_TRESHOLD * UPDATE_DISTANCE_TRESHOLD

Definition at line 46 of file SCR_ResourceComponent.c.

◆ UPDATE_PERIOD

const float UPDATE_PERIOD = 10.0 / 60.0
protected

Definition at line 47 of file SCR_ResourceComponent.c.