Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
SCR_ResourceContainerVirtual Interface Reference
Inheritance diagram for SCR_ResourceContainerVirtual:
[legend]

Public Member Functions

override void GetBoundingVolume (inout vector mins, inout vector maxs)
 
override void GetAxisAlignedBoundingVolume (inout vector mins, inout vector maxs)
 
override void CopyFromContainer (notnull SCR_ResourceContainer container)
 
override bool IsInRange (vector origin, float range)
 
override void DebugDraw (bool shouldShowRange=true)
 
- Public Member Functions inherited from SCR_ResourceContainer
float GetResourceValue ()
 
float GetMaxResourceValue ()
 
float GetWeightMultiplier ()
 
float GetResourceGain ()
 
float GetResourceDecay ()
 
float GetResourceGainTickrate ()
 
float GetResourceDecayTickrate ()
 
void GetBoundingVolume (inout vector mins, inout vector maxs)
 
void GetAxisAlignedBoundingVolume (inout vector mins, inout vector maxs)
 
EResourceContainerStorageType GetStorageType ()
 
EResourceType GetResourceType ()
 
EResourceContainerOnEmptyBehavior GetOnEmptyBehavior ()
 
SCR_ResourceEncapsulator GetResourceEncapsulator ()
 
set< SCR_ResourceInteractorGetLinkedInteractors ()
 
array< SCR_ResourceInteractorGetLinkedInteractorsCopy ()
 
int GetLinkedInteractorsCount ()
 
SCR_ResourceInteractor GetLinkedInteractorAt (int index)
 
int GetLinkedInteractorIndex (notnull SCR_ResourceInteractor interactor)
 
bool IsInteractorLinked (notnull SCR_ResourceInteractor interactor)
 
bool IsAllowed (notnull SCR_ResourceInteractor interactor)
 
override bool IsIsolated ()
 
bool IsInRange (vector origin, float range)
 
bool IsResourceDecayEnabled ()
 
bool IsResourceGainEnabled ()
 
bool IsEncapsulated ()
 
override bool ShouldUpdate ()
 
bool IsAllowedToStoreResource ()
 
bool CanStoreResource ()
 
ScriptInvoker GetOnResourcesChanged ()
 
ScriptInvoker GetOnMaxResourcesChanged ()
 
ScriptInvoker GetOnResourcesDepleted ()
 
ScriptInvoker GetOnResourcesMaxedOut ()
 
ScriptInvoker GetOnGainChanged ()
 
ScriptInvoker GetOnDecayChanged ()
 
ScriptInvoker GetOnGainEnabledChanged ()
 
ScriptInvoker GetOnDecayEnabledChanged ()
 
bool SetResourceValue (float value, bool notifyChange=true)
 Sets the resource value of the container to the specified value, clamped to the maximum resource value.
 
bool SetResourceValueUnsafe (float value, bool notifyChange=true)
 Unsafely sets the resource value of the container to the specified value, clamped to the maximum resource value.
 
bool SetMaxResourceValue (float value, bool notifyChange=true)
 
bool SetResourceGain (float value, bool notifyChange=true)
 
bool SetResourceDecay (float value, bool notifyChange=true)
 
void SetResourceGainTickrate (float tickrate)
 
void SetResourceDecayTickrate (float tickrate)
 
void SetResourceGainTimeout (float timeout)
 
void SetResourceDecayTimeout (float timeout)
 
void SetResourceEncapsulator (SCR_ResourceEncapsulator encapsulator)
 
bool IncreaseResourceValue (float value, bool notifyChange=true)
 
bool DecreaseResourceValue (float value, bool notifyChange=true)
 
bool MaxOutResourceValue (bool notifyChange=true)
 
bool DepleteResourceValue (bool notifyChange=true)
 
void SetOnEmptyBehavior (EResourceContainerOnEmptyBehavior behavior)
 
bool LinkInteractor (notnull SCR_ResourceInteractor interactor)
 
bool UnlinkInteractor (notnull SCR_ResourceInteractor interactor)
 
void UnlinkEveryInteractor ()
 
bool EnableGain (bool shouldEnable, bool notifyChange=true)
 
bool EnableDecay (bool shouldEnable, bool notifyChange=true)
 
void SetIsEncapsulated (bool shouldEnable)
 
void UpdateWeightMultiplier ()
 
void DebugDraw (bool shouldShowRange=true)
 
override void Update (float timeslice)
 
float ComputeResourceDifference ()
 
void CopyFromContainer (notnull SCR_ResourceContainer container)
 
void Initialize (notnull IEntity owner, notnull SCR_ResourceContainer container)
 
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

vector m_vBoundingVolumeMins
 
vector m_vBoundingVolumeMaxs
 
- Protected Attributes inherited from SCR_ResourceContainer
ref set< SCR_ResourceInteractorm_aInteractors = new set<SCR_ResourceInteractor>()
 
EResourceContainerStorageType m_eStorageType
 
float m_fResourceValueCurrent
 
float m_fResourceValueMax
 
bool m_bEnableResourceGain
 
float m_fResourceGain
 
float m_fResourceGainTickrate
 
float m_fResourceGainTimeout
 
bool m_bEnableResourceDecay
 
float m_fResourceDecay
 
float m_fResourceDecayTickrate
 
float m_fResourceDecayTimeout
 
EResourceContainerOnEmptyBehavior m_eOnEmptyBehavior
 
bool m_bIsEncapsulated
 
float m_fResourceGainElapsedTime
 
float m_fResourceDecayElapsedTime
 
float m_fWeightMultiplier
 
ref ScriptInvoker m_OnResourcesChangedInvoker
 
ref ScriptInvoker m_OnMaxResourcesChangedInvoker
 
ref ScriptInvoker m_OnResourcesDepletedInvoker
 
ref ScriptInvoker m_OnResourcesMaxedOutInvoker
 
ref ScriptInvoker m_OnGainChangedInvoker
 
ref ScriptInvoker m_OnDecayChangedInvoker
 
ref ScriptInvoker m_OnGainEnabledChangedInvoker
 
ref ScriptInvoker m_OnDecayEnabledChangedInvoker
 
SCR_ResourceEncapsulator m_ResourceEncapsulator
 
- 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_ResourceContainer
float debugControlOffset = 0.25
 
- Public Attributes inherited from SCR_ResourceActor
string m_sDebugName
 
- Static Public Attributes inherited from SCR_ResourceActor
static const float RESOURCES_LOWER_LIMIT = 0.0
 
- Protected Member Functions inherited from SCR_ResourceContainer
void ComputeResourceGain (float timeslice, out float resourceValue)
 
void ComputeResourceDecay (float timeslice, out float resourceValue)
 
void OnResourcesChanged (float previousValue)
 
void OnResourcesIncreased (float previousValue)
 
void OnResourcesDecreased (float previousValue)
 
void OnResourcesDepleted (float previousValue)
 
void OnResourcesMaxedOut (float previousValue)
 
void OnMaxResourcesChanged (float previousValue)
 
void OnGainChanged (float previousValue)
 
void OnDecayChanged (float previousValue)
 
void OnGainEnabledChanged (float previousValue)
 
void OnDecayEnabledChanged (float previousValue)
 
- Static Protected Attributes inherited from SCR_ResourceActor
static const float UPDATE_PERIOD = 10.0 / 60.0
 
static const int CODEC_GENERATOR_PACKET_BYTESIZE = 32
 

Member Function Documentation

◆ CopyFromContainer()

override void SCR_ResourceContainerVirtual.CopyFromContainer ( notnull SCR_ResourceContainer  container)

Implements SCR_ResourceContainer.

◆ DebugDraw()

override void SCR_ResourceContainerVirtual.DebugDraw ( bool  shouldShowRange = true)

Implements SCR_ResourceContainer.

◆ GetAxisAlignedBoundingVolume()

override void SCR_ResourceContainerVirtual.GetAxisAlignedBoundingVolume ( inout vector  mins,
inout vector  maxs 
)

Implements SCR_ResourceContainer.

◆ GetBoundingVolume()

override void SCR_ResourceContainerVirtual.GetBoundingVolume ( inout vector  mins,
inout vector  maxs 
)

Implements SCR_ResourceContainer.

◆ IsInRange()

override bool SCR_ResourceContainerVirtual.IsInRange ( vector  origin,
float  range 
)

Implements SCR_ResourceContainer.

Member Data Documentation

◆ m_vBoundingVolumeMaxs

vector SCR_ResourceContainerVirtual.m_vBoundingVolumeMaxs
protected

◆ m_vBoundingVolumeMins

vector SCR_ResourceContainerVirtual.m_vBoundingVolumeMins
protected

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