Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SupportStationManagerComponent Class Reference
Inheritance diagram for SCR_SupportStationManagerComponent:
ScriptComponent

Protected Member Functions

ScriptInvokerBase< SupportStation_OnSupportStationExecutedGetOnSupportStationExecutedSuccessfully ()
int GetArrayOfSupportStationType (ESupportStationType type, notnull out array< SCR_BaseSupportStationComponent > supportStations)
SCR_BaseSupportStationComponent GetClosestValidSupportStation (ESupportStationType type, notnull IEntity actionUser, notnull IEntity actionOwner, SCR_BaseUseSupportStationAction action, vector actionPosition, out ESupportStationReasonInvalid reasonInvalid, out int supplyCost)
void AddSupportStation (SCR_BaseSupportStationComponent supportStation)
void RemoveSupportStation (SCR_BaseSupportStationComponent supportStation)
override void OnPostInit (IEntity owner)

Static Protected Member Functions

static SCR_SupportStationManagerComponent GetInstance ()
static void OnSupportStationExecutedSuccessfully (notnull SCR_BaseSupportStationComponent supportStation, ESupportStationType supportStationType, IEntity actionUser, IEntity actionOwner, SCR_BaseUseSupportStationAction action)
static void GetCombinedHitZonesStateForDamageSupportStation (notnull SCR_DamageManagerComponent damageManagerComponent, notnull array< HitZone > hitZones, float maxHealPercentage, out float roughHealPercentageStatus, out bool allHitZonesMaxHealth=true)

Protected Attributes

ref map< ESupportStationType, ref array< SCR_BaseSupportStationComponent > > m_mSupportStations = new map<ESupportStationType, ref array<SCR_BaseSupportStationComponent>>()
ref ScriptInvokerBase< SupportStation_OnSupportStationExecutedm_OnSupportStationExecutedSuccessfully = new ScriptInvokerBase<SupportStation_OnSupportStationExecuted>()

Static Protected Attributes

static SCR_SupportStationManagerComponent s_Instance

Detailed Description

Definition at line 10 of file SCR_SupportStationManagerComponent.c.

Member Function Documentation

◆ AddSupportStation()

void SCR_SupportStationManagerComponent::AddSupportStation ( SCR_BaseSupportStationComponent supportStation)
inlineprotected

Add support station to manager

Parameters
[in]supportStationSupport Station to add

Definition at line 148 of file SCR_SupportStationManagerComponent.c.

◆ GetArrayOfSupportStationType()

int SCR_SupportStationManagerComponent::GetArrayOfSupportStationType ( ESupportStationType type,
notnull out array< SCR_BaseSupportStationComponent > supportStations )
inlineprotected

Definition at line 55 of file SCR_SupportStationManagerComponent.c.

◆ GetClosestValidSupportStation()

SCR_BaseSupportStationComponent SCR_SupportStationManagerComponent::GetClosestValidSupportStation ( ESupportStationType type,
notnull IEntity actionUser,
notnull IEntity actionOwner,
SCR_BaseUseSupportStationAction action,
vector actionPosition,
out ESupportStationReasonInvalid reasonInvalid,
out int supplyCost )
inlineprotected

Returns closest valid support station of given type. Will only get support stations of highest availible priority

Parameters
[in]typeSupport Station Type
[in]actionUserUser that started the action
[in]actionOwnerentity on which the action manager was executed
[in]action
[in]actionPosition
[out]reasonInvalidReason why interaction was invalid (Will always take the highest reason why)
[out]supplyCostcost of closest valid support station, -1 if supplies are not enabled or if no support station is valid
Returns
Closest valid support station

Definition at line 79 of file SCR_SupportStationManagerComponent.c.

◆ GetCombinedHitZonesStateForDamageSupportStation()

void SCR_SupportStationManagerComponent::GetCombinedHitZonesStateForDamageSupportStation ( notnull SCR_DamageManagerComponent damageManagerComponent,
notnull array< HitZone > hitZones,
float maxHealPercentage,
out float roughHealPercentageStatus,
out bool allHitZonesMaxHealth = true )
inlinestaticprotected

Used in DamageSystemSupport station to return a rough percentage of the health the given damageManagercompnent has. Take note that this will never be a precise number and it will ignore the default hitZone until all other hitZone percentage is greater than it

Parameters
[in]damageManagerComponentDamage Manager to check
[in]hitZones
[in]maxHealPercentageHow much can be healed max 1 == 100%
[out]roughHealPercentageStatusRough percentage of health of the entity to display to the player the status
[out]allHitZonesMaxHealthTrue if all hitZones are max health using maxHealPercentage

Definition at line 210 of file SCR_SupportStationManagerComponent.c.

◆ GetInstance()

SCR_SupportStationManagerComponent SCR_SupportStationManagerComponent::GetInstance ( )
inlinestaticprotected

Get instance of SCR_SupportStationManagerComponent from GameMode

Returns
SupportStationManager

Definition at line 23 of file SCR_SupportStationManagerComponent.c.

◆ GetOnSupportStationExecutedSuccessfully()

ScriptInvokerBase< SupportStation_OnSupportStationExecuted > SCR_SupportStationManagerComponent::GetOnSupportStationExecutedSuccessfully ( )
inlineprotected

Get script invoker when a Support station is executed There is always a chance that given component, entity or action is null depending if it was deleted. Highly unlikely but possible

Returns
Script Invoker

Definition at line 48 of file SCR_SupportStationManagerComponent.c.

◆ OnPostInit()

override void SCR_SupportStationManagerComponent::OnPostInit ( IEntity owner)
inlineprotected

Definition at line 253 of file SCR_SupportStationManagerComponent.c.

◆ OnSupportStationExecutedSuccessfully()

void SCR_SupportStationManagerComponent::OnSupportStationExecutedSuccessfully ( notnull SCR_BaseSupportStationComponent supportStation,
ESupportStationType supportStationType,
IEntity actionUser,
IEntity actionOwner,
SCR_BaseUseSupportStationAction action )
inlinestaticprotected

Called by Support stations when they are successfully executed (Local and server)

Parameters
[in]supportStationSupport station that was executed
[in]typeSupport Station Type
[in]actionUserUser that started the action
[in]actionOwnerentity on which the action manager was executed (This is in general the target of the support station action)
[in]actionAction used to execute the support station

Definition at line 35 of file SCR_SupportStationManagerComponent.c.

◆ RemoveSupportStation()

void SCR_SupportStationManagerComponent::RemoveSupportStation ( SCR_BaseSupportStationComponent supportStation)
inlineprotected

Remove support station from manager

Parameters
[in]supportStationSupport Station to remove

Definition at line 184 of file SCR_SupportStationManagerComponent.c.

Member Data Documentation

◆ m_mSupportStations

ref map<ESupportStationType, ref array<SCR_BaseSupportStationComponent> > SCR_SupportStationManagerComponent::m_mSupportStations = new map<ESupportStationType, ref array<SCR_BaseSupportStationComponent>>()
protected

Definition at line 13 of file SCR_SupportStationManagerComponent.c.

◆ m_OnSupportStationExecutedSuccessfully

ref ScriptInvokerBase<SupportStation_OnSupportStationExecuted> SCR_SupportStationManagerComponent::m_OnSupportStationExecutedSuccessfully = new ScriptInvokerBase<SupportStation_OnSupportStationExecuted>()
protected

Definition at line 18 of file SCR_SupportStationManagerComponent.c.

◆ s_Instance

SCR_SupportStationManagerComponent SCR_SupportStationManagerComponent::s_Instance
staticprotected

Definition at line 15 of file SCR_SupportStationManagerComponent.c.


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