Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_RequiredDeployablePart Class Reference
Inheritance diagram for SCR_RequiredDeployablePart:
ScriptAndConfig SCR_AlternativeRequirementsDeployablePart SCR_ComboRequiredDeployableParts

Protected Member Functions

ResourceName GetPrefab ()
void SetNumberOfRequiredPrefabs (int newValue)
int GetNumberOfRequiredPrefabs ()
LocalizedString GetPartName ()
LocalizedString GetMissingPartName ()
bool IsRequirementMet (out int difference)
int GetNumberOfFoundEntities ()
bool ShouldDeleteFoundEntities ()
array< IEntityGetFoundEntities ()
bool EvaluateFoundEntity (vector origin, float distanceSqToFoundEntity, notnull BaseContainer foundPrefab, notnull IEntity foundEntity)
bool DeleteFoundEntity (int id, notnull IEntity user)
void AddFoundEntity (notnull IEntity entity)
void ReplaceFoundEntity (notnull IEntity entity, int id)
SCR_RequiredDeployablePart DeepClone ()

Protected Attributes

ResourceName m_sPrefab
int m_iNumberOfRequiredPrefabs
LocalizedString m_sPartName
bool m_bDeletePartsOnDeployment
bool m_bDetachMagazinesWhenUsed
ref array< IEntitym_aFoundEntities

Detailed Description

Definition at line 1 of file SCR_RequiredDeployablePart.c.

Member Function Documentation

◆ AddFoundEntity()

void SCR_RequiredDeployablePart::AddFoundEntity ( notnull IEntity entity)
inlineprotected

Attempts to add entity to the list of found elements as long as its not already on that list

Parameters
[in]entity

Definition at line 156 of file SCR_RequiredDeployablePart.c.

◆ DeepClone()

SCR_RequiredDeployablePart SCR_RequiredDeployablePart::DeepClone ( )
inlineprotected

Returns deep copy of this instance Normal Clone does a shallow copy, thus if you need to clone content of a child class then override this and do it manually

Definition at line 182 of file SCR_RequiredDeployablePart.c.

◆ DeleteFoundEntity()

bool SCR_RequiredDeployablePart::DeleteFoundEntity ( int id,
notnull IEntity user )
inlineprotected

Attempts to delete one of the found entities and remove it from the array

Note
NOTICE: When entry in the array is deleted, then in its place will be moved last element of the array
Parameters
[in]idof the entity that should be deleted
Returns
false if deletion failed as there is no entity to delete

Definition at line 136 of file SCR_RequiredDeployablePart.c.

◆ EvaluateFoundEntity()

bool SCR_RequiredDeployablePart::EvaluateFoundEntity ( vector origin,
float distanceSqToFoundEntity,
notnull BaseContainer foundPrefab,
notnull IEntity foundEntity )
inlineprotected

Evaluates found entity against requirements and if it meets them, then it is stored as found entity If max number of required elements is already reached, then it will check if this new entity is closer than others, and in such case replace one of them

Parameters
[in]originposition from which search is being done
[in]distanceSqToFoundEntitydistance from the origin to the position of the found entity
[in]foundPrefab
[in]foundEntity
Returns
false if found entity doesnt meet the requirements, otherwise true

Definition at line 99 of file SCR_RequiredDeployablePart.c.

◆ GetFoundEntities()

array< IEntity > SCR_RequiredDeployablePart::GetFoundEntities ( )
inlineprotected
Returns

Definition at line 86 of file SCR_RequiredDeployablePart.c.

◆ GetMissingPartName()

LocalizedString SCR_RequiredDeployablePart::GetMissingPartName ( )
inlineprotected
Returns

Definition at line 49 of file SCR_RequiredDeployablePart.c.

◆ GetNumberOfFoundEntities()

int SCR_RequiredDeployablePart::GetNumberOfFoundEntities ( )
inlineprotected
Returns

Definition at line 69 of file SCR_RequiredDeployablePart.c.

◆ GetNumberOfRequiredPrefabs()

int SCR_RequiredDeployablePart::GetNumberOfRequiredPrefabs ( )
inlineprotected
Returns

Definition at line 35 of file SCR_RequiredDeployablePart.c.

◆ GetPartName()

LocalizedString SCR_RequiredDeployablePart::GetPartName ( )
inlineprotected
Returns

Definition at line 42 of file SCR_RequiredDeployablePart.c.

◆ GetPrefab()

ResourceName SCR_RequiredDeployablePart::GetPrefab ( )
inlineprotected
Returns

Definition at line 22 of file SCR_RequiredDeployablePart.c.

◆ IsRequirementMet()

bool SCR_RequiredDeployablePart::IsRequirementMet ( out int difference)
inlineprotected
Parameters
[out]differencebetween number of found entities and required amount
Returns
true if requirement is fulfilled

Definition at line 57 of file SCR_RequiredDeployablePart.c.

◆ ReplaceFoundEntity()

void SCR_RequiredDeployablePart::ReplaceFoundEntity ( notnull IEntity entity,
int id )
inlineprotected

Attempts to replace entity which is in specified place of the array with provided entity

Parameters
[in]entitynew element that will replace the old one
[in]idplace in which new element will replace the old one

Definition at line 168 of file SCR_RequiredDeployablePart.c.

◆ SetNumberOfRequiredPrefabs()

void SCR_RequiredDeployablePart::SetNumberOfRequiredPrefabs ( int newValue)
inlineprotected

Definition at line 28 of file SCR_RequiredDeployablePart.c.

◆ ShouldDeleteFoundEntities()

bool SCR_RequiredDeployablePart::ShouldDeleteFoundEntities ( )
inlineprotected
Returns

Definition at line 79 of file SCR_RequiredDeployablePart.c.

Member Data Documentation

◆ m_aFoundEntities

ref array<IEntity> SCR_RequiredDeployablePart::m_aFoundEntities
protected

Definition at line 18 of file SCR_RequiredDeployablePart.c.

◆ m_bDeletePartsOnDeployment

bool SCR_RequiredDeployablePart::m_bDeletePartsOnDeployment
protected

Definition at line 13 of file SCR_RequiredDeployablePart.c.

◆ m_bDetachMagazinesWhenUsed

bool SCR_RequiredDeployablePart::m_bDetachMagazinesWhenUsed
protected

Definition at line 16 of file SCR_RequiredDeployablePart.c.

◆ m_iNumberOfRequiredPrefabs

int SCR_RequiredDeployablePart::m_iNumberOfRequiredPrefabs
protected

Definition at line 7 of file SCR_RequiredDeployablePart.c.

◆ m_sPartName

LocalizedString SCR_RequiredDeployablePart::m_sPartName
protected

Definition at line 10 of file SCR_RequiredDeployablePart.c.

◆ m_sPrefab

ResourceName SCR_RequiredDeployablePart::m_sPrefab
protected

Definition at line 4 of file SCR_RequiredDeployablePart.c.


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