Arma Reforger Script API
|
Base class for child editable entity component. More...
Public Member Functions | |
void | EOnStateChanged (EEditableEntityState states, EEditableEntityState changedState, bool toSet) |
Event called every time state of editable entity changes. | |
void | UpdateFromCurrentState () |
Update based on current state of editable entity. | |
bool | CanApply (EEditableEntityState changedState) |
Check if effects controlled y this component can be applied when given state changes. | |
void | SCR_EditableEntityBaseChildComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
Protected Attributes | |
EEditableEntityState | m_State |
GenericEntity | m_Owner |
Base class for child editable entity component.
When this component is attached to editable entity or one of its children in hierarchy (default hierarchy, not editor one), it will receive events when state of the editable entity changes. Used to manage visualization of entity avatar's, e.g., to show virtual entity and change its color when it's selected.
void SCR_EditableEntityBaseChildComponent.SCR_EditableEntityBaseChildComponent | ( | IEntityComponentSource | src, |
IEntity | ent, | ||
IEntity | parent | ||
) |
[in] | src | |
[in] | ent | |
[in] | parent |
bool SCR_EditableEntityBaseChildComponent.CanApply | ( | EEditableEntityState | changedState | ) |
Check if effects controlled y this component can be applied when given state changes.
[in] | changedState | Changed state |
void SCR_EditableEntityBaseChildComponent.EOnStateChanged | ( | EEditableEntityState | states, |
EEditableEntityState | changedState, | ||
bool | toSet | ||
) |
Event called every time state of editable entity changes.
[in] | states | currently active states |
[in] | changedState | changed state |
[in] | toSet | true if the state was enabled, false if it was disabled |
Implemented in SCR_EditableEntityMaterialChildComponent, and SCR_EditableEntityVisibilityChildComponent.
void SCR_EditableEntityBaseChildComponent.UpdateFromCurrentState | ( | ) |
Update based on current state of editable entity.
|
protected |
|
protected |