|
Arma Reforger Script API
|
Public Member Functions | |
| override int | GetParam () |
| Get custom param which can be used to pass extra information to performed action. | |
| override bool | CanBeShown (SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags) |
| Determine if action can be shown with passed hovered entity and selected entitites. | |
| override bool | CanBePerformed (SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags) |
| Determine if action can be performed with passed hovered entity and selected entitites. | |
| override void | Perform (SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags, int param=-1) |
| Perform action. | |
Public Member Functions inherited from SCR_BaseContextAction | |
| override bool | IsServer () |
| Should action be sent to server. | |
Public Member Functions inherited from SCR_BaseEditorAction | |
| bool | IsEnabled () |
| void | PerformOwner (SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags, int param=-1) |
| SCR_UIInfo | GetInfo () |
| EEditorActionType | GetActionType () |
| EEditorActionGroup | GetActionGroup () |
| string | GetShortcut () |
| Get action shortcut that triggers this action. | |
| void | SetShortcutRef (string shortcutRef) |
| Set shortcut reference - it's shown in GUI, but not actually listened to. | |
| int | GetOrder () |
| Get order of this entity, can be any integer value including negative. | |
| array< ref SCR_BaseEditorEffect > | GetEffects () |
| Get effects tied to the action. | |
| void | AddShortcut (SCR_BaseActionsEditorComponent actionsManager) |
| void | RemoveShortcut () |
| bool | CheckAndSetCooldown () |
| Check if action is on cooldown and if not set action on cooldown The cooldown will never be set if cooldownTime is equal or less than 0. | |
| bool | IsOnCooldown () |
| Check if action is on cooldown. | |
| void | ~SCR_BaseEditorAction () |
Protected Attributes | |
| ResourceName | m_sLightningPrefab |
Protected Attributes inherited from SCR_BaseEditorAction | |
| bool | m_bEnabled |
| ref SCR_UIInfo | m_Info |
| EEditorActionType | m_ActionType |
| EEditorActionGroup | m_ActionGroup |
| int | m_iOrder |
| string | m_sShortcut |
| bool | m_bEnableShortcutLogics |
| ref array< ref SCR_BaseEditorEffect > | m_Effects |
| SCR_BaseActionsEditorComponent | m_ActionsManager |
| string | m_sShortcutRef |
| float | m_fCooldownTime |
| float | m_fCurrentCooldownTime |
| float | m_fCooldownUpdateFreq = 50 |
| bool | m_bShowOnCooldownNotification |
| bool | m_bIsOnCooldown |
Additional Inherited Members | |
Protected Member Functions inherited from SCR_BaseEditorAction | |
| void | OnShortcut () |
| void | ActivateCooldown () |
| void | UpdateCooldown () |
| void | OnCooldownDone () |
| override bool SCR_LightningContextAction.CanBePerformed | ( | SCR_EditableEntityComponent | hoveredEntity, |
| notnull set< SCR_EditableEntityComponent > | selectedEntities, | ||
| vector | cursorWorldPosition, | ||
| int | flags ) |
Determine if action can be performed with passed hovered entity and selected entitites.
Implements SCR_BaseEditorAction.
| override bool SCR_LightningContextAction.CanBeShown | ( | SCR_EditableEntityComponent | hoveredEntity, |
| notnull set< SCR_EditableEntityComponent > | selectedEntities, | ||
| vector | cursorWorldPosition, | ||
| int | flags ) |
Determine if action can be shown with passed hovered entity and selected entitites.
Implements SCR_BaseEditorAction.
| override int SCR_LightningContextAction.GetParam | ( | ) |
Get custom param which can be used to pass extra information to performed action.
Called on the machine of whoever called the action, with the editor opened. Sent to Perform function, even when it's called on server.
Implements SCR_BaseEditorAction.
| override void SCR_LightningContextAction.Perform | ( | SCR_EditableEntityComponent | hoveredEntity, |
| notnull set< SCR_EditableEntityComponent > | selectedEntities, | ||
| vector | cursorWorldPosition, | ||
| int | flags, | ||
| int | param = -1 ) |
Perform action.
Implements SCR_BaseEditorAction.
|
protected |