Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SCR_BaseCommandAction Interface Reference
Inheritance diagram for SCR_BaseCommandAction:
[legend]

Public Member Functions

bool StartPlacing (notnull set< SCR_EditableEntityComponent > selectedEntities)
 
override void Perform (SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags, int param=-1)
 Perform action.
 
override void Track ()
 Track events which influence the action.
 
override void Untrack ()
 Untrack events which influence the action.
 
override bool IsServer ()
 Should action be sent to server.
 
- Public Member Functions inherited from SCR_BaseToggleToolbarAction
ScriptInvoker GetOnToggleChange ()
 Get ScriptInvoker called when the action is toggled by some external event.
 
void Track ()
 Track events which influence the action.
 
void Untrack ()
 Untrack events which influence the action.
 
SCR_UIInfo GetInfoToggled ()
 
- Public Member Functions inherited from SCR_EditorToolbarAction
void OnInit (SCR_ActionsToolbarEditorUIComponent toolbar)
 
void OnExit (SCR_ActionsToolbarEditorUIComponent toolbar)
 
- Public Member Functions inherited from SCR_BaseEditorAction
bool IsEnabled ()
 
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.
 
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.
 
void Perform (SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags, int param=-1)
 Perform action.
 
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.
 
bool IsServer ()
 Should action be sent to server.
 
int GetParam ()
 Get custom param which can be used to pass extra information to performed action.
 
array< ref SCR_BaseEditorEffectGetEffects ()
 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 Member Functions

void FilterEntities (notnull set< SCR_EditableEntityComponent > inEntities, out notnull set< SCR_EditableEntityComponent > outEntities)
 
set< SCR_EditableEntityComponentGetSelectedEntities (notnull set< SCR_EditableEntityComponent > inEntities)
 
void OnCurrentActionChanged ()
 
- Protected Member Functions inherited from SCR_BaseToggleToolbarAction
void Toggle (int value, bool highlight=false)
 Toggle action state.
 
- Protected Member Functions inherited from SCR_BaseEditorAction
void OnShortcut ()
 
void ActivateCooldown ()
 
void UpdateCooldown ()
 
void OnCooldownDone ()
 

Protected Attributes

ResourceName m_CommandPrefab
 
- Protected Attributes inherited from SCR_BaseToggleToolbarAction
ref SCR_UIInfo m_InfoToggled
 
- 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_BaseEditorEffectm_Effects
 
SCR_BaseActionsEditorComponent m_ActionsManager
 
string m_sShortcutRef
 
float m_fCooldownTime
 
float m_fCurrentCooldownTime
 
float m_fCooldownUpdateFreq = 50
 
bool m_bShowOnCooldownNotification
 
bool m_bIsOnCooldown
 

Member Function Documentation

◆ FilterEntities()

void SCR_BaseCommandAction.FilterEntities ( notnull set< SCR_EditableEntityComponent inEntities,
out notnull set< SCR_EditableEntityComponent outEntities 
)
protected

◆ GetSelectedEntities()

set< SCR_EditableEntityComponent > SCR_BaseCommandAction.GetSelectedEntities ( notnull set< SCR_EditableEntityComponent inEntities)
protected

◆ IsServer()

override bool SCR_BaseCommandAction.IsServer ( )

Should action be sent to server.

Returns
True if action is handled on server

Implements SCR_BaseEditorAction.

◆ OnCurrentActionChanged()

void SCR_BaseCommandAction.OnCurrentActionChanged ( )
protected

◆ Perform()

override void SCR_BaseCommandAction.Perform ( SCR_EditableEntityComponent  hoveredEntity,
notnull set< SCR_EditableEntityComponent selectedEntities,
vector  cursorWorldPosition,
int  flags,
int  param = -1 
)

Perform action.

Implements SCR_BaseEditorAction.

Implemented in SCR_TaskBaseCommandAction, and SCR_WaypointBaseCommandAction.

◆ StartPlacing()

bool SCR_BaseCommandAction.StartPlacing ( notnull set< SCR_EditableEntityComponent selectedEntities)

◆ Track()

override void SCR_BaseCommandAction.Track ( )

Track events which influence the action.

Called when the action's GUI representation is created. To be overloaded by inherited classes.

Implements SCR_BaseToggleToolbarAction.

◆ Untrack()

override void SCR_BaseCommandAction.Untrack ( )

Untrack events which influence the action.

Called when the action's GUI representation is destroyed. To be overloaded by inherited classes.

Implements SCR_BaseToggleToolbarAction.

Member Data Documentation

◆ m_CommandPrefab

ResourceName SCR_BaseCommandAction.m_CommandPrefab
protected

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