Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SCR_BaseEditorAction Interface Reference

Base container class for all editor action types (ContextActions, WaypointActions, AbiliityActions) More...

Inheritance diagram for SCR_BaseEditorAction:
[legend]

Public Member Functions

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 OnShortcut ()
 
void ActivateCooldown ()
 
void UpdateCooldown ()
 
void OnCooldownDone ()
 

Protected Attributes

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
 

Detailed Description

Base container class for all editor action types (ContextActions, WaypointActions, AbiliityActions)

Constructor & Destructor Documentation

◆ ~SCR_BaseEditorAction()

void SCR_BaseEditorAction.~SCR_BaseEditorAction ( )

Member Function Documentation

◆ ActivateCooldown()

void SCR_BaseEditorAction.ActivateCooldown ( )
protected

◆ AddShortcut()

void SCR_BaseEditorAction.AddShortcut ( SCR_BaseActionsEditorComponent  actionsManager)

Implemented in SCR_DoubleClickAction.

◆ CanBePerformed()

bool SCR_BaseEditorAction.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.

Implemented in SCR_CaptureBasesContextAction, SCR_SupplyBasesContextAction, SCR_AttachToParentContextAction, SCR_CopyAttributesContextAction, SCR_CopyIngameTimestampContextAction, SCR_CopyPrefabNameContextAction, SCR_CopyServerTimestampContextAction, SCR_CopyWorldPositionContextAction, SCR_CreateLayerContextAction, SCR_CycleContextAction, SCR_DeleteContextAction, SCR_DetachContextAction, SCR_DisableSimulationContextAction, SCR_EnableSimulationContextAction, SCR_FillVehicleContextAction, SCR_FindInWorkshopContextAction, SCR_HideSelectionContextAction, SCR_LockLayerContextAction, SCR_MoveInFormationContextAction, SCR_MoveToFlightAltitudeContextAction, SCR_MoveToSeatPositionContextAction, SCR_PasteAttributesContextAction, SCR_PasteOnOriginalPositionContextAction, SCR_PatrolContextAction, SCR_RefuelContextAction, SCR_ReplaceWithContextAction, SCR_SelectCrewContextAction, SCR_SelectOccupantContextAction, SCR_SelectPassengersContextAction, SCR_SetAsLeaderContextAction, SCR_ShowSelectionContextAction, SCR_SpawnPassengersContextAction, SCR_SuppressContextAction, SCR_TransportContextAction, SCR_UnloadContextAction, SCR_UnlockLayerContextAction, SCR_AssetBrowserContextAction, SCR_ChooseAndSpawnOccupantsContextAction, SCR_CreateLayerWithSelectionContextAction, SCR_CreateNewGroupContextAction, SCR_DuplicateContextAction, SCR_FocusHereContextAction, SCR_GeneralContextAction, SCR_GetInContextAction, SCR_GetOutContextAction, SCR_LayerContextAction, SCR_LightningContextAction, SCR_MoveToRootContextAction, SCR_OpenAttributeWindowContextAction, SCR_PasteContextAction, SCR_PingContextAction, SCR_PlaceEntityContextAction, SCR_SelectContextAction, SCR_SelectedEntitiesContextAction, SCR_SpawnCrewContextAction, SCR_SwitchCameraToContextAction, SCR_SwitchToPlayerContextAction, SCR_TakeControlContextAction, SCR_TeleportCameraContextAction, SCR_TeleportCameraToPlayerContextAction, SCR_TeleportPlayerHereContextAction, SCR_UserContextAction, SCR_BasePlacingToolbarAction, SCR_CameraAttributesToolbarAction, SCR_DeleteDestroyedToolbarAction, SCR_EndGameToolbarAction, SCR_FlashlightToolbarAction, SCR_GlobalAttributesToolbarAction, SCR_InstantActionTest, SCR_LeaveModeToolbarAction, SCR_LoadSessionToolbarAction, SCR_MapToolbarAction, SCR_NewSessionToolbarAction, SCR_PauseGameTimeToolbarAction, SCR_PlacingFlagToolbarAction, SCR_ResetEditorComponentsToolbarAction, SCR_SaveSessionToolbarAction, SCR_SnapToTerrainToolbarAction, and SCR_ToggleLocalEditorNightModeToolbarAction.

◆ CanBeShown()

bool SCR_BaseEditorAction.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.

Implemented in SCR_SpawnPointBaseCommandAction, SCR_TaskBaseCommandAction, SCR_WaypointBaseCommandAction, SCR_CaptureBasesContextAction, SCR_SupplyBasesContextAction, SCR_AttachToParentContextAction, SCR_CopyAttributesContextAction, SCR_CopyIngameTimestampContextAction, SCR_CopyPrefabNameContextAction, SCR_CopyServerTimestampContextAction, SCR_CopyWorldPositionContextAction, SCR_CreateLayerContextAction, SCR_CycleContextAction, SCR_DeleteContextAction, SCR_DetachContextAction, SCR_DisableSimulationContextAction, SCR_EnableSimulationContextAction, SCR_FillVehicleContextAction, SCR_FindInWorkshopContextAction, SCR_HideSelectionContextAction, SCR_LockLayerContextAction, SCR_MoveInFormationContextAction, SCR_MoveToFlightAltitudeContextAction, SCR_MoveToSeatPositionContextAction, SCR_PasteAttributesContextAction, SCR_PasteOnOriginalPositionContextAction, SCR_PatrolContextAction, SCR_RefuelContextAction, SCR_ReplaceWithContextAction, SCR_SelectCrewContextAction, SCR_SelectOccupantContextAction, SCR_SelectPassengersContextAction, SCR_SetAsLeaderContextAction, SCR_ShowSelectionContextAction, SCR_SpawnPassengersContextAction, SCR_SuppressContextAction, SCR_TransportContextAction, SCR_UnloadContextAction, SCR_UnlockLayerContextAction, SCR_AssetBrowserContextAction, SCR_ChooseAndSpawnOccupantsContextAction, SCR_CreateLayerWithSelectionContextAction, SCR_CreateNewGroupContextAction, SCR_DuplicateContextAction, SCR_FindInContentBrowserContextAction, SCR_FocusHereContextAction, SCR_GeneralContextAction, SCR_GetInContextAction, SCR_GetOutContextAction, SCR_LayerContextAction, SCR_LightningContextAction, SCR_MoveToRootContextAction, SCR_OpenAttributeWindowContextAction, SCR_PasteContextAction, SCR_PingContextAction, SCR_PlaceEntityContextAction, SCR_SelectContextAction, SCR_SelectedEntitiesContextAction, SCR_SpawnCrewContextAction, SCR_SwitchCameraToContextAction, SCR_SwitchToPlayerContextAction, SCR_TakeControlContextAction, SCR_TeleportCameraContextAction, SCR_TeleportCameraToPlayerContextAction, SCR_TeleportPlayerHereContextAction, SCR_UserContextAction, SCR_BasePlacingToolbarAction, SCR_BrowserToolbarAction, SCR_CameraAttributesToolbarAction, SCR_DeleteDestroyedToolbarAction, SCR_EndGameToolbarAction, SCR_FlashlightToolbarAction, SCR_GlobalAttributesToolbarAction, SCR_HintSequenceToolbarAction, SCR_InstantActionTest, SCR_LeaveModeToolbarAction, SCR_LoadSessionToolbarAction, SCR_MapToolbarAction, SCR_NewSessionToolbarAction, SCR_OpenWorldToolbarAction, SCR_PauseGameTimeToolbarAction, SCR_PlacingFlagToolbarAction, SCR_ResetEditorComponentsToolbarAction, SCR_RewindToolbarAction, SCR_SaveSessionToolbarAction, SCR_SnapToTerrainToolbarAction, SCR_ToggleInterfaceToolbarAction, and SCR_ToggleLocalEditorNightModeToolbarAction.

◆ CheckAndSetCooldown()

bool SCR_BaseEditorAction.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.

Returns
Returns true if currently on cooldown

◆ GetActionGroup()

EEditorActionGroup SCR_BaseEditorAction.GetActionGroup ( )

◆ GetActionType()

EEditorActionType SCR_BaseEditorAction.GetActionType ( )

◆ GetEffects()

array< ref SCR_BaseEditorEffect > SCR_BaseEditorAction.GetEffects ( )

Get effects tied to the action.

Returns
Array of effects

◆ GetInfo()

SCR_UIInfo SCR_BaseEditorAction.GetInfo ( )

◆ GetOrder()

int SCR_BaseEditorAction.GetOrder ( )

Get order of this entity, can be any integer value including negative.


◆ GetParam()

int SCR_BaseEditorAction.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.

Returns
Param value

Implemented in SCR_CampaignBuildingDeleteSelectedContextAction, and SCR_TakeControlContextAction.

◆ GetShortcut()

string SCR_BaseEditorAction.GetShortcut ( )

Get action shortcut that triggers this action.

Returns
Action name

◆ IsEnabled()

bool SCR_BaseEditorAction.IsEnabled ( )
Returns
True if the action is enabled

◆ IsOnCooldown()

bool SCR_BaseEditorAction.IsOnCooldown ( )

Check if action is on cooldown.

Returns
Returns true if currently on cooldown

◆ IsServer()

bool SCR_BaseEditorAction.IsServer ( )

◆ OnCooldownDone()

void SCR_BaseEditorAction.OnCooldownDone ( )
protected

◆ OnShortcut()

void SCR_BaseEditorAction.OnShortcut ( )
protected

◆ Perform()

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

Perform action.

Implemented in SCR_BaseCommandAction, SCR_TaskBaseCommandAction, SCR_WaypointBaseCommandAction, SCR_CaptureBasesContextAction, SCR_SupplyBasesContextAction, SCR_AttachToParentContextAction, SCR_CopyAttributesContextAction, SCR_CopyIngameTimestampContextAction, SCR_CopyPrefabNameContextAction, SCR_CopyServerTimestampContextAction, SCR_CopyWorldPositionContextAction, SCR_CreateLayerContextAction, SCR_CycleContextAction, SCR_DeleteContextAction, SCR_DetachContextAction, SCR_DisableSimulationContextAction, SCR_EnableSimulationContextAction, SCR_FillVehicleContextAction, SCR_FindInWorkshopContextAction, SCR_HideSelectionContextAction, SCR_LockLayerContextAction, SCR_MoveInFormationContextAction, SCR_MoveToFlightAltitudeContextAction, SCR_MoveToSeatPositionContextAction, SCR_PasteAttributesContextAction, SCR_PasteOnOriginalPositionContextAction, SCR_PatrolContextAction, SCR_RefuelContextAction, SCR_ReplaceWithContextAction, SCR_SelectCrewContextAction, SCR_SelectOccupantContextAction, SCR_SelectPassengersContextAction, SCR_SetAsLeaderContextAction, SCR_ShowSelectionContextAction, SCR_SpawnPassengersContextAction, SCR_SuppressContextAction, SCR_TransportContextAction, SCR_UnloadContextAction, SCR_UnlockLayerContextAction, SCR_AssetBrowserContextAction, SCR_CampaignBuildingDeleteSelectedContextAction, SCR_ChooseAndSpawnOccupantsContextAction, SCR_CreateLayerWithSelectionContextAction, SCR_CreateNewGroupContextAction, SCR_DuplicateContextAction, SCR_FindInContentBrowserContextAction, SCR_FocusHereContextAction, SCR_GeneralContextAction, SCR_GetInContextAction, SCR_GetOutContextAction, SCR_KickPlayerContextAction, SCR_LayerContextAction, SCR_LightningContextAction, SCR_MoveToRootContextAction, SCR_OpenAttributeWindowContextAction, SCR_PasteContextAction, SCR_PingContextAction, SCR_PlaceEntityContextAction, SCR_SelectContextAction, SCR_SelectedEntitiesContextAction, SCR_SpawnCrewContextAction, SCR_SpawnOccupantsContextAction, SCR_SwitchCameraToContextAction, SCR_SwitchToPlayerContextAction, SCR_TakeControlContextAction, SCR_TeleportCameraContextAction, SCR_TeleportCameraToPlayerContextAction, SCR_TeleportPlayerHereContextAction, SCR_UserContextAction, SCR_BasePlacingToolbarAction, SCR_BrowserToolbarAction, SCR_CameraAttributesToolbarAction, SCR_DeleteDestroyedToolbarAction, SCR_EndGameToolbarAction, SCR_FlashlightToolbarAction, SCR_GlobalAttributesToolbarAction, SCR_HintSequenceToolbarAction, SCR_InstantActionTest, SCR_LeaveModeToolbarAction, SCR_LoadSessionToolbarAction, SCR_MapToolbarAction, SCR_NewSessionToolbarAction, SCR_OpenWorldToolbarAction, SCR_PauseGameTimeToolbarAction, SCR_PlacingFlagToolbarAction, SCR_ResetEditorComponentsToolbarAction, SCR_RewindToolbarAction, SCR_SaveSessionToolbarAction, SCR_SnapToTerrainToolbarAction, SCR_ToggleInterfaceToolbarAction, and SCR_ToggleLocalEditorNightModeToolbarAction.

◆ PerformOwner()

void SCR_BaseEditorAction.PerformOwner ( SCR_EditableEntityComponent  hoveredEntity,
notnull set< SCR_EditableEntityComponent selectedEntities,
vector  cursorWorldPosition,
int  flags,
int  param = -1 
)

◆ RemoveShortcut()

void SCR_BaseEditorAction.RemoveShortcut ( )

Implemented in SCR_DoubleClickAction.

◆ SetShortcutRef()

void SCR_BaseEditorAction.SetShortcutRef ( string  shortcutRef)

Set shortcut reference - it's shown in GUI, but not actually listened to.

Parameters
shortcutRefAction name

◆ UpdateCooldown()

void SCR_BaseEditorAction.UpdateCooldown ( )
protected

Member Data Documentation

◆ m_ActionGroup

EEditorActionGroup SCR_BaseEditorAction.m_ActionGroup
protected

◆ m_ActionsManager

SCR_BaseActionsEditorComponent SCR_BaseEditorAction.m_ActionsManager
protected

◆ m_ActionType

EEditorActionType SCR_BaseEditorAction.m_ActionType
protected

◆ m_bEnabled

bool SCR_BaseEditorAction.m_bEnabled
protected

◆ m_bEnableShortcutLogics

bool SCR_BaseEditorAction.m_bEnableShortcutLogics
protected

◆ m_bIsOnCooldown

bool SCR_BaseEditorAction.m_bIsOnCooldown
protected

◆ m_bShowOnCooldownNotification

bool SCR_BaseEditorAction.m_bShowOnCooldownNotification
protected

◆ m_Effects

ref array<ref SCR_BaseEditorEffect> SCR_BaseEditorAction.m_Effects
protected

◆ m_fCooldownTime

float SCR_BaseEditorAction.m_fCooldownTime
protected

◆ m_fCooldownUpdateFreq

float SCR_BaseEditorAction.m_fCooldownUpdateFreq = 50
protected

◆ m_fCurrentCooldownTime

float SCR_BaseEditorAction.m_fCurrentCooldownTime
protected

◆ m_Info

ref SCR_UIInfo SCR_BaseEditorAction.m_Info
protected

◆ m_iOrder

int SCR_BaseEditorAction.m_iOrder
protected

◆ m_sShortcut

string SCR_BaseEditorAction.m_sShortcut
protected

◆ m_sShortcutRef

string SCR_BaseEditorAction.m_sShortcutRef
protected

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