◆ AddFoundEntity()
| void SCR_RequiredDeployablePart.AddFoundEntity |
( |
notnull IEntity | entity | ) |
|
Attempts to add entity to the list of found elements as long as its not already on that list.
- Parameters
-
◆ DeepClone()
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.
Implemented in SCR_AlternativeRequirementsDeployablePart.
◆ DeleteFoundEntity()
| bool SCR_RequiredDeployablePart.DeleteFoundEntity |
( |
int | id, |
|
|
notnull IEntity | user ) |
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] | id | of the entity that should be deleted |
- Returns
- false if deletion failed as there is no entity to delete
Implemented in SCR_AlternativeRequirementsDeployablePart, and SCR_ComboRequiredDeployableParts.
◆ EvaluateFoundEntity()
| bool SCR_RequiredDeployablePart.EvaluateFoundEntity |
( |
vector | origin, |
|
|
float | distanceSqToFoundEntity, |
|
|
notnull BaseContainer | foundPrefab, |
|
|
notnull IEntity | foundEntity ) |
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] | origin | position from which search is being done |
| [in] | distanceSqToFoundEntity | distance 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
Implemented in SCR_AlternativeRequirementsDeployablePart, and SCR_ComboRequiredDeployableParts.
◆ GetFoundEntities()
| array< IEntity > SCR_RequiredDeployablePart.GetFoundEntities |
( |
| ) |
|
◆ GetMissingPartName()
◆ GetNumberOfFoundEntities()
| int SCR_RequiredDeployablePart.GetNumberOfFoundEntities |
( |
| ) |
|
◆ GetNumberOfRequiredPrefabs()
| int SCR_RequiredDeployablePart.GetNumberOfRequiredPrefabs |
( |
| ) |
|
◆ GetPartName()
◆ GetPrefab()
| ResourceName SCR_RequiredDeployablePart.GetPrefab |
( |
| ) |
|
◆ IsRequirementMet()
| bool SCR_RequiredDeployablePart.IsRequirementMet |
( |
out int | difference | ) |
|
◆ ReplaceFoundEntity()
| void SCR_RequiredDeployablePart.ReplaceFoundEntity |
( |
notnull IEntity | entity, |
|
|
int | id ) |
Attempts to replace entity which is in specified place of the array with provided entity.
- Parameters
-
| [in] | entity | new element that will replace the old one |
| [in] | id | place in which new element will replace the old one |
◆ SetNumberOfRequiredPrefabs()
| void SCR_RequiredDeployablePart.SetNumberOfRequiredPrefabs |
( |
int | newValue | ) |
|
◆ ShouldDeleteFoundEntities()
| bool SCR_RequiredDeployablePart.ShouldDeleteFoundEntities |
( |
| ) |
|
◆ m_aFoundEntities
| ref array<IEntity> SCR_RequiredDeployablePart.m_aFoundEntities |
|
protected |
◆ m_bDeletePartsOnDeployment
| bool SCR_RequiredDeployablePart.m_bDeletePartsOnDeployment |
|
protected |
◆ m_bDetachMagazinesWhenUsed
| bool SCR_RequiredDeployablePart.m_bDetachMagazinesWhenUsed |
|
protected |
◆ m_iNumberOfRequiredPrefabs
| int SCR_RequiredDeployablePart.m_iNumberOfRequiredPrefabs |
|
protected |
◆ m_sPartName
◆ m_sPrefab
| ResourceName SCR_RequiredDeployablePart.m_sPrefab |
|
protected |
The documentation for this interface was generated from the following file:
- Game/Components/SCR_RequiredDeployablePart.c