Arma Reforger Script API
|
Public Member Functions | |
EEditableEntityType | GetEntityType () |
Get entity type. | |
SCR_UIInfo | GetInfo () |
Get information about the entity. | |
string | GetIconBoneName () |
Get bone name on which entity icon will be rendered. | |
SCR_EditableEntityInteraction | GetEntityInteraction () |
Get entity interaction rules of this entity. | |
Static Public Member Functions | |
static ResourceName | GetRandomVariant (ResourceName prefab) |
Get random variant of the given ResourceName (needs to have a editable entity component) | |
static bool | HasVariants (ResourceName prefab) |
If any variants were assigned to the prefab (Does not check if the variants are valid) | |
static IEntityComponentSource | GetEditableEntitySource (Resource entityResource) |
Get component source from prefab resource. | |
static IEntityComponentSource | GetEditableEntitySource (IEntitySource entitySource) |
Get component source from entity source. | |
static SCR_EditableEntityUIInfo | GetInfo (IEntityComponentSource componentSource) |
Get UI info from SCR_EditableEntityComponent source. | |
static EEditableEntityType | GetEntityType (IEntityComponentSource componentSource) |
Get entity system type. | |
static SCR_EditableEntityInteraction | GetEntityInteraction (IEntityComponentSource componentSource) |
Get entity interaction rules of this entity prefab. | |
static ResourceName | GetSlotPrefab (IEntityComponentSource componentSource) |
Get slot prefab from SCR_EditableEntityComponent source. | |
static EEditableEntityFlag | GetEntityFlags (IEntityComponentSource componentSource) |
Get entity flags. | |
static bool | HasFlag (IEntityComponentSource componentSource, EEditableEntityFlag flag) |
Check if the SCR_EditableEntityComponent source has given flag. | |
static bool | GetEntitySourceBudgetCost (IEntityComponentSource editableEntitySource, out notnull array< ref SCR_EntityBudgetValue > budgetValues) |
Gets entity budget cost values from EditableEntity component source. | |
static bool | GetEntitySourceChildrenBudgetCosts (IEntityComponentSource editableEntitySource, out notnull array< ref SCR_EntityBudgetValue > budgetValues) |
Gets entity + entity children budget cost values from EditableEntity component source. | |
Protected Attributes | |
EEditableEntityType | m_EntityType |
ref SCR_UIInfo | m_UIInfo |
string | m_sIconBoneName |
ref SCR_EditableEntityInteraction | m_EntityInteraction |
ref SCR_EditableEntityVariantData | m_VariantData |
|
static |
Get component source from entity source.
[in] | entitySource | Entity source - cannot be null |
|
static |
Get component source from prefab resource.
[in] | entityResource | loaded entity prefab, use Resource.Load(prefab) to retrieve it from ResourceName |
|
static |
Get entity flags.
[in] | componentSource | Component source |
SCR_EditableEntityInteraction SCR_EditableEntityComponentClass.GetEntityInteraction | ( | ) |
Get entity interaction rules of this entity.
If it doesn't contain any custom rules, those for its type will be used.
|
static |
Get entity interaction rules of this entity prefab.
If it doesn't contain any custom rules, those for its type will be used.
[in] | componentSource | Component source - cannot be null |
|
static |
Gets entity budget cost values from EditableEntity component source.
[in] | editableEntitySource | Component source of the SCR_EditableEntityComponent |
[out] | budgetValues | Output array filled with budget cost values |
Implemented in SCR_EditableFactionComponentClass, and SCR_EditableGroupComponentClass.
|
static |
Gets entity + entity children budget cost values from EditableEntity component source.
[in] | editableEntitySource | Component source of the SCR_EditableEntityComponent |
[out] | budgetValues | Output array filled with budget cost values |
EEditableEntityType SCR_EditableEntityComponentClass.GetEntityType | ( | ) |
Get entity type.
|
static |
Get entity system type.
[in] | componentSource | Component source - cannot be null |
string SCR_EditableEntityComponentClass.GetIconBoneName | ( | ) |
Get bone name on which entity icon will be rendered.
SCR_UIInfo SCR_EditableEntityComponentClass.GetInfo | ( | ) |
Get information about the entity.
When none exist, create a dummy one.
|
static |
Get UI info from SCR_EditableEntityComponent source.
[in] | componentSource | Component source - cannot be null |
|
static |
Get random variant of the given ResourceName (needs to have a editable entity component)
[in] | prefab | The default variant. It will be used to get the variants from as well as potentially adding it to the randomization pool depending on the settings |
|
static |
Get slot prefab from SCR_EditableEntityComponent source.
[in] | componentSource | Component source - cannot be null |
|
static |
Check if the SCR_EditableEntityComponent source has given flag.
[in] | componentSource | Component source |
[in] | flag | Queried flag |
|
static |
If any variants were assigned to the prefab (Does not check if the variants are valid)
[in] | prefab | Prefab to check default variants of |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |